mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed typo in docs/topics/auth/default.txt.
This commit is contained in:
parent
f3427ccb25
commit
d510971088
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ The ``login_required`` decorator
|
|||
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
url(r'^accounts/login/$', auth_views.Login.as_view()),
|
||||
url(r'^accounts/login/$', auth_views.LoginView.as_view()),
|
||||
|
||||
The :setting:`settings.LOGIN_URL <LOGIN_URL>` also accepts view function
|
||||
names and :ref:`named URL patterns <naming-url-patterns>`. This allows you
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue