Switch from using the admin login/logout pages to custom 'lemonauth' pages

This commit is contained in:
Danielle McLean 2017-10-24 23:50:57 +11:00
parent 1670b6d427
commit c210650ca7
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
12 changed files with 89 additions and 3 deletions

View file

@ -70,6 +70,7 @@ INSTALLED_APPS = [
'lemoncurry',
'home',
'lemonauth',
'users',
'wellknowns',
]
@ -147,6 +148,10 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
LOGIN_URL = 'lemonauth:login'
LOGIN_REDIRECT_URL = 'home:index'
LOGOUT_REDIRECT_URL = LOGIN_REDIRECT_URL
# Internationalization
# https://docs.djangoproject.com/en/1.11/topics/i18n/