mirror of
https://github.com/django/django.git
synced 2025-07-19 11:15:19 +00:00
Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names.
Thanks UloPe and Eric Florenzano for the patch, and Malcolm Tredinnick for review.
This commit is contained in:
parent
518c582966
commit
a78dd109e6
13 changed files with 162 additions and 52 deletions
|
@ -92,7 +92,7 @@ def setup(verbosity, test_labels):
|
|||
settings.TEMPLATE_DIRS = (os.path.join(RUNTESTS_DIR, TEST_TEMPLATE_DIR),)
|
||||
settings.USE_I18N = True
|
||||
settings.LANGUAGE_CODE = 'en'
|
||||
settings.LOGIN_URL = '/accounts/login/'
|
||||
settings.LOGIN_URL = 'django.contrib.auth.views.login'
|
||||
settings.MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue