diff --git a/humbug/settings.py b/humbug/settings.py index 0627343165..d0cc78c6d3 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -208,11 +208,11 @@ MESSAGE_LOG="all_messages_log" if deployed: ALLOW_REGISTER = False FULL_NAVBAR = False - NOT_LOGGED_IN_REDIRECT = 'django.contrib.auth.views.login' + HOME_NOT_LOGGED_IN = 'django.contrib.auth.views.login' else: ALLOW_REGISTER = True FULL_NAVBAR = True - NOT_LOGGED_IN_REDIRECT = 'zephyr.views.accounts_home' + HOME_NOT_LOGGED_IN = 'zephyr.views.accounts_home' # For testing, you may want to have emails be printed to the console. if not deployed: diff --git a/zephyr/views.py b/zephyr/views.py index 0a70ee031c..a6a68b7d80 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -157,7 +157,7 @@ def accounts_home(request): def home(request): if not request.user.is_authenticated(): - return HttpResponseRedirect(reverse(settings.NOT_LOGGED_IN_REDIRECT)) + return HttpResponseRedirect(reverse(settings.HOME_NOT_LOGGED_IN)) user_profile = UserProfile.objects.get(user=request.user) num_messages = UserMessage.objects.filter(user_profile=user_profile).count()