diff options
Diffstat (limited to 'django_skaschool')
-rw-r--r-- | django_skaschool/settings.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/django_skaschool/settings.py b/django_skaschool/settings.py index 79d0299..b61a474 100644 --- a/django_skaschool/settings.py +++ b/django_skaschool/settings.py @@ -96,6 +96,18 @@ USE_TZ = True # contrib.sites SITE_ID = 1 +# The URL where requests are redirected after login when the +# 'contrib.auth.login' view gets no 'next' parameter. +LOGIN_REDIRECT_URL = '/accounts/profile/' + +# The URL where requests are redirected for login, +# especially when using the 'login_required()' decorator. +LOGIN_URL = '/accounts/login/' + +# The URL redirected to after logout +LOGOUT_URL = '/accounts/logout/' + + ## template directories TEMPLATE_DIRS = ( # Don't forget to use absolute paths, not relative paths. |