Fixed #28886 -- Updated prefix for example django.contrib.auth.urls URLs.
This commit is contained in:
parent
bae365e13c
commit
4114b441ee
|
@ -887,19 +887,19 @@ easiest way is to include the provided URLconf in ``django.contrib.auth.urls``
|
||||||
in your own URLconf, for example::
|
in your own URLconf, for example::
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include('django.contrib.auth.urls')),
|
path('accounts/', include('django.contrib.auth.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
This will include the following URL patterns::
|
This will include the following URL patterns::
|
||||||
|
|
||||||
^login/$ [name='login']
|
accounts/login/ [name='login']
|
||||||
^logout/$ [name='logout']
|
accounts/logout/ [name='logout']
|
||||||
^password_change/$ [name='password_change']
|
accounts/password_change/ [name='password_change']
|
||||||
^password_change/done/$ [name='password_change_done']
|
accounts/password_change/done/ [name='password_change_done']
|
||||||
^password_reset/$ [name='password_reset']
|
accounts/password_reset/ [name='password_reset']
|
||||||
^password_reset/done/$ [name='password_reset_done']
|
accounts/password_reset/done/ [name='password_reset_done']
|
||||||
^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$ [name='password_reset_confirm']
|
accounts/reset/<uidb64>/<token>/ [name='password_reset_confirm']
|
||||||
^reset/done/$ [name='password_reset_complete']
|
accounts/reset/done/ [name='password_reset_complete']
|
||||||
|
|
||||||
The views provide a URL name for easier reference. See :doc:`the URL
|
The views provide a URL name for easier reference. See :doc:`the URL
|
||||||
documentation </topics/http/urls>` for details on using named URL patterns.
|
documentation </topics/http/urls>` for details on using named URL patterns.
|
||||||
|
|
Loading…
Reference in New Issue