compat: expose auth_login/auth_login view names (#22113)

This commit is contained in:
Frédéric Péters 2018-02-26 12:49:09 +01:00
parent bc37a28e7e
commit 9f2461265f
1 changed files with 5 additions and 0 deletions

View File

@ -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