mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.11.x] Fixed typo in docs/topics/auth/default.txt.
Backport of d510971088570e205e49f9fa665a8d4259514ada from master
This commit is contained in:
parent
12a3032df0
commit
0f60333534
@ -510,7 +510,7 @@ The ``login_required`` decorator
|
|||||||
|
|
||||||
from django.contrib.auth import views as auth_views
|
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
|
The :setting:`settings.LOGIN_URL <LOGIN_URL>` also accepts view function
|
||||||
names and :ref:`named URL patterns <naming-url-patterns>`. This allows you
|
names and :ref:`named URL patterns <naming-url-patterns>`. This allows you
|
||||||
|
Loading…
x
Reference in New Issue
Block a user