[PATCH] Move TIME_ZONE and LANGUAGE_CODE hints to settings_local.py.template

6 views
Skip to first unread message

Ben Jackson

unread,
Dec 2, 2009, 5:08:05 PM12/2/09
to byteflow-hackers
# HG changeset patch
# User Ben Jackson <b...@ben.com>
# Date 1259646658 28800
# Node ID c6f650416dac1d610adda588f547cc7f5fb01143
# Parent 10f5ab8a7f3098bd8aedcfce396818ed4d3653c8
Move TIME_ZONE and LANGUAGE_CODE hints to settings_local.py.template

Encourage users to set proper values. Change default timezone to GMT; keep
Kiev as hint in .template.

diff -r 10f5ab8a7f30 -r c6f650416dac settings.py
--- a/settings.py Fri Nov 27 22:44:12 2009 -0800
+++ b/settings.py Mon Nov 30 21:50:58 2009 -0800
@@ -29,13 +29,8 @@

MANAGERS = ADMINS

-# Local time zone for this installation. All choices can be found here:
-# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
-TIME_ZONE = 'Europe/Kiev'
-
-# Language code for this installation. All choices can be found here:
-# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
-# http://blogs.law.harvard.edu/tech/stories/storyReader$15
+# Defaults -- set these in settings_local.py
+TIME_ZONE = 'GMT'
LANGUAGE_CODE = 'en-us'

SITE_ID = SiteIDHook()
diff -r 10f5ab8a7f30 -r c6f650416dac settings_local.py.template
--- a/settings_local.py.template Fri Nov 27 22:44:12 2009 -0800
+++ b/settings_local.py.template Mon Nov 30 21:50:58 2009 -0800
@@ -5,6 +5,15 @@
DATABASE_USER = ''
DATABASE_PASSWORD = ''

+# Local time zone for this installation. All choices can be found here:
+# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
+#TIME_ZONE = 'Europe/Kiev'
+
+# Language code for this installation. All choices can be found here:
+# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
+# http://blogs.law.harvard.edu/tech/stories/storyReader$15
+#LANGUAGE_CODE = 'en-us'
+
TAGLINE = u'Everyone will like it'
FOOTER = u'(c) 2007-2009 <a href="/about/">Alexander Solovyov</a>'

Reply all
Reply to author
Forward
0 new messages