From 0147396d221933d14bf8d1708716156a0608b65d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 30 Oct 2013 23:20:00 +0100 Subject: [PATCH] Basic tutorial setup for postgresqln timezone and so on. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- settings.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/settings.py b/settings.py index 07341ae..4aaa947 100644 --- a/settings.py +++ b/settings.py @@ -4,18 +4,18 @@ DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( - # ('Your Name', 'your_email@example.com'), + ('Jerome BENOIT', 'jerome.benoit@grenouille.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': '', # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'comicsporn', # Or path to database file if using sqlite3. + 'USER': 'django', # Not used with sqlite3. + 'PASSWORD': 'django', # Not used with sqlite3. + 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } @@ -31,7 +31,12 @@ ALLOWED_HOSTS = [] # timezone as the operating system. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'Europe/Paris' + +# When USE_TZ is False, this is the time zone in which Django will store all datetimes. +# When USE_TZ is True, this is the default time zone that Django will use to display datetimes +# in templates and to interpret datetimes entered in forms. +# USE_TZ = True # Introduced in Django 1.4.X # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html -- 2.34.1