summaryrefslogtreecommitdiffstats
path: root/askbot/context.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-01-03 20:01:23 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-01-03 20:01:23 -0300
commit707bc16c662ec779ac364e219e56bb5e1c368932 (patch)
tree62c45b5e1003de5fdf2862b711c0adfefe082e79 /askbot/context.py
parent694c78e348d90e8dce2411fb860f5e824278f7de (diff)
downloadaskbot-707bc16c662ec779ac364e219e56bb5e1c368932.tar.gz
askbot-707bc16c662ec779ac364e219e56bb5e1c368932.tar.bz2
askbot-707bc16c662ec779ac364e219e56bb5e1c368932.zip
when internal login app is disabled, links to log in/log out disappear, assuming that the user will provide own
Diffstat (limited to 'askbot/context.py')
-rw-r--r--askbot/context.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/askbot/context.py b/askbot/context.py
index f3665240..17ab35bd 100644
--- a/askbot/context.py
+++ b/askbot/context.py
@@ -21,6 +21,8 @@ def application_settings(request):
my_settings['LOGIN_URL'] = url_utils.get_login_url()
my_settings['LOGOUT_URL'] = url_utils.get_logout_url()
my_settings['LOGOUT_REDIRECT_URL'] = url_utils.get_logout_redirect_url()
+ my_settings['USE_ASKBOT_LOGIN_SYSTEM'] = 'askbot.deps.django_authopenid' \
+ in settings.INSTALLED_APPS
return {
'settings': my_settings,
'skin': get_skin(request),