diff options
author | Wookey <wookey@wookware.org> | 2013-07-02 21:12:59 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2013-07-02 21:12:59 +0100 |
commit | ba5bc365c1684b99c5498691e7623385dc176526 (patch) | |
tree | c83198d7d3b88e78d15646ff7bd36363d8b29cc4 | |
parent | c362b1b5294f8da73bf3bc56c9a36b5454406821 (diff) | |
parent | a6a9016548640126569bb2745136bf001500d99c (diff) | |
download | troggle-ba5bc365c1684b99c5498691e7623385dc176526.tar.gz troggle-ba5bc365c1684b99c5498691e7623385dc176526.tar.bz2 troggle-ba5bc365c1684b99c5498691e7623385dc176526.zip |
merge support for django 1.2 location for auth module
-rw-r--r-- | settings.py | 7 |
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 = '/' |