From 451d62903bebda2c616a380ad4e2f0c195b8f8df Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Mon, 14 Sep 2009 20:32:18 +0200 Subject: [PATCH] add LOGIN_REDIRECT_URL to settings, so @login_required and the login view redirect to the profile correctly. fixes #27 - that is, as soon as I update the Debian packages. :) --- pyweb/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyweb/settings.py b/pyweb/settings.py index 6237b5d..869e563 100644 --- a/pyweb/settings.py +++ b/pyweb/settings.py @@ -136,6 +136,7 @@ ADMIN_MEDIA_PREFIX = MUMBLE_DJANGO_URL+'media/' # URL to the login view - will be resolved on-demand from deferred_resolver import ViewResolver LOGIN_URL = ViewResolver( "django.contrib.auth.views.login" ) +LOGIN_REDIRECT_URL = ViewResolver( "views.profile" ) # Make this unique, and don't share it with anybody.