compat: expose auth_login/auth_login view names (#22113)
This commit is contained in:
parent
bc37a28e7e
commit
9f2461265f
|
@ -23,6 +23,11 @@ from . import views
|
|||
urlpatterns = [
|
||||
url(r'^$', views.home, name='home'),
|
||||
url(r'^backoffice/', views.backoffice),
|
||||
|
||||
# provide django.contrib.auth view names for compatibility with
|
||||
# templates created for classic django applications.
|
||||
url(r'^login/$', compat.quixote, name='auth_login'),
|
||||
url(r'^logout$', compat.quixote, name='auth_logout'),
|
||||
]
|
||||
|
||||
# other URLs are handled by the quixote handler
|
||||
|
|
Loading…
Reference in New Issue