Basic tutorial setup for postgresqln timezone and so on.
authorJérôme Benoit <jerome.benoit@grenouille.com>
Wed, 30 Oct 2013 22:20:00 +0000 (23:20 +0100)
committerJérôme Benoit <jerome.benoit@grenouille.com>
Wed, 30 Oct 2013 22:20:00 +0000 (23:20 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@grenouille.com>
settings.py

index 07341ae90a5be30f451c22765762aecedd6cb37a..4aaa947a589de80f185a00ad7fc9280d870d81b7 100644 (file)
@@ -4,18 +4,18 @@ DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 
 ADMINS = (
 TEMPLATE_DEBUG = DEBUG
 
 ADMINS = (
-    # ('Your Name', 'your_email@example.com'),
+    ('Jerome BENOIT', 'jerome.benoit@grenouille.com'),
 )
 
 MANAGERS = ADMINS
 
 DATABASES = {
     'default': {
 )
 
 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.
     }
 }
         '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.
 # 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
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html