summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index 1d2d423..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.core.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 = '/'