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:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user