summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-14 18:47:12 -0500
committerDan McGee <dan@archlinux.org>2010-09-14 18:47:12 -0500
commitb084936ad9a1e5d7edfcfeb3495b997cb2fe368b (patch)
tree59b55c33255b29c9cada1f7b4921811d496304af /settings.py
parent3394a94a4019406b643341771dae057d39af73e3 (diff)
Ensure consistent date formatting everywhererelease_2010-09-14
Set up a default DATE_FORMAT in settings.py and use it everywhere we do the '|date' template filter rather than hardcoding the value in the template. This also fixes a regression with news date/time now that we changed the field to store both date and time. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index e1c9e853..3a7db393 100644
--- a/settings.py
+++ b/settings.py
@@ -33,6 +33,9 @@ USE_I18N = False
# calendars according to the current locale
USE_L10N = False
+# Default date format in templates for 'date' filter
+DATE_FORMAT = 'Y-m-d'
+
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".