mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #17209 -- Added LoginView and LogoutView class-based views
Thanks Tim Graham for the review.
This commit is contained in:
parent
742ea51413
commit
78963495d0
16 changed files with 226 additions and 157 deletions
|
@ -36,6 +36,6 @@ urlpatterns = [
|
|||
|
||||
url(r'^accounts/$', RedirectView.as_view(url='login/')),
|
||||
url(r'^accounts/no_trailing_slash$', RedirectView.as_view(url='login/')),
|
||||
url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}),
|
||||
url(r'^accounts/logout/$', auth_views.logout),
|
||||
url(r'^accounts/login/$', auth_views.LoginView.as_view(template_name='login.html')),
|
||||
url(r'^accounts/logout/$', auth_views.LogoutView.as_view()),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue