summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2013-07-02 21:12:59 +0100
committerWookey <wookey@wookware.org>2013-07-02 21:12:59 +0100
commit64f4e122a519ed1a1c3b462f20a41af555a42cec (patch)
tree5ef4a55b14cfbb479631c2306ca5a3ae15e3d263 /settings.py
parent9737a09c26bd90bc43980d3673e567d22e1aff80 (diff)
parenta376044fdfefb1c02cd6a71b637419c568c96897 (diff)
downloadtroggle-64f4e122a519ed1a1c3b462f20a41af555a42cec.tar.gz
troggle-64f4e122a519ed1a1c3b462f20a41af555a42cec.tar.bz2
troggle-64f4e122a519ed1a1c3b462f20a41af555a42cec.zip
merge support for django 1.2 location for auth module
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index fe8116e..47d48ae 100644
--- a/settings.py
+++ b/settings.py
@@ -57,7 +57,12 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.eggs.load_template_source',
)
-TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", "core.context.troggle_context", )
+if django.VERSION[0] == 1 and django.VERSION[1] < 4:
+ authmodule = 'django.core.context_processors.auth'
+else:
+ authmodule = 'django.contrib.auth.context_processors.auth'
+
+TEMPLATE_CONTEXT_PROCESSORS = ( authmodule, "core.context.troggle_context", )
LOGIN_REDIRECT_URL = '/'