From ee3f6d1433eb532e17d0b861e92828a211c2e66d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 7 May 2014 00:42:07 +0200 Subject: [PATCH] cleanup conf --- timeside/server/sandbox/settings.py | 5 ++--- timeside/server/views.py | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/timeside/server/sandbox/settings.py b/timeside/server/sandbox/settings.py index 2318f5f..1cd5c10 100644 --- a/timeside/server/sandbox/settings.py +++ b/timeside/server/sandbox/settings.py @@ -31,11 +31,11 @@ ALLOWED_HOSTS = [] # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # In a Windows environment this must be set to your system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'Europe/Paris' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'fr-fr' SITE_ID = 1 @@ -131,7 +131,6 @@ INSTALLED_APPS = ( # 'django.contrib.admindocs', 'django_extensions', 'south', - # 'timeside', 'timeside.server', 'timeside.player', 'rest_framework', diff --git a/timeside/server/views.py b/timeside/server/views.py index 141b76f..f371e19 100644 --- a/timeside/server/views.py +++ b/timeside/server/views.py @@ -99,4 +99,6 @@ class ResultGrapherView(View): def get(self, request, *args, **kwargs): result = Result.objects.get(pk=kwargs['pk']) - return HttpResponse(stream_from_file(result.file.path), mimetype='image/png') + return HttpResponse(stream_from_file(result.file.path), + mimetype='image/png') + -- 2.39.5