use reverse_lazy for URLs
This commit is contained in:
parent
db97a141d9
commit
c159692445
|
@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
warnings.filterwarnings('ignore',
|
warnings.filterwarnings('ignore',
|
||||||
module='floppyforms',
|
module='floppyforms',
|
||||||
|
@ -106,8 +107,8 @@ AUTHENTICATION_BACKENDS = (
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/2.0/topics/i18n/
|
# https://docs.djangoproject.com/en/2.0/topics/i18n/
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = '/'
|
LOGIN_REDIRECT_URL = reverse_lazy('customers')
|
||||||
LOGOUT_REDIRECT_URL = 'login'
|
LOGOUT_REDIRECT_URL = reverse_lazy('login')
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue