1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #17209 -- Added LoginView and LogoutView class-based views

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2016-05-15 17:28:00 +02:00
parent 742ea51413
commit 78963495d0
16 changed files with 226 additions and 157 deletions

View File

@@ -1,6 +1,10 @@
from django.conf.urls import url
from django.contrib.auth import views
def some_view(request):
pass
urlpatterns = [
url(r'^accounts/logout/$', views.logout, name='logout'),
url(r'^some-url/$', some_view, name='some-view'),
]