Browse Source

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. :)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
451d62903b
  1. 1
      pyweb/settings.py

1
pyweb/settings.py

@ -136,6 +136,7 @@ ADMIN_MEDIA_PREFIX = MUMBLE_DJANGO_URL+'media/'
# URL to the login view - will be resolved on-demand # URL to the login view - will be resolved on-demand
from deferred_resolver import ViewResolver from deferred_resolver import ViewResolver
LOGIN_URL = ViewResolver( "django.contrib.auth.views.login" ) LOGIN_URL = ViewResolver( "django.contrib.auth.views.login" )
LOGIN_REDIRECT_URL = ViewResolver( "views.profile" )
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.

Loading…
Cancel
Save