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 warnings
|
||||
from django.urls import reverse_lazy
|
||||
|
||||
warnings.filterwarnings('ignore',
|
||||
module='floppyforms',
|
||||
|
@ -106,8 +107,8 @@ AUTHENTICATION_BACKENDS = (
|
|||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/2.0/topics/i18n/
|
||||
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
LOGOUT_REDIRECT_URL = 'login'
|
||||
LOGIN_REDIRECT_URL = reverse_lazy('customers')
|
||||
LOGOUT_REDIRECT_URL = reverse_lazy('login')
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
|
||||
|
|
Loading…
Reference in New Issue