diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-20 17:01:59 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-20 17:01:59 +0800 |
commit | 5bd3311371eddda6952ea85b41c6f59d36d7dd3b (patch) | |
tree | b4fddb6f39564003b3948cbdad98281c69e392c7 /django_skaschool | |
parent | 733a218f0c807dd6c6c60addca1cb3c512207993 (diff) | |
download | django-skaschool-5bd3311371eddda6952ea85b41c6f59d36d7dd3b.tar.bz2 |
* updated django_skaschool/settings.py
o LOGIN_URL, LOGIN_REDIRECT_URL, LOGOUT_URL
* added login/logout views to account urls.py
* added account templates for login, logout, profile
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. |