Fixed -- Updated prefix for example django.contrib.auth.urls URLs.
@@ -887,19 +887,19 @@ easiest way is to include the provided URLconf in ``django.contrib.auth.urls``
in your own URLconf, for example::
urlpatterns = [
- path('', include('django.contrib.auth.urls')),
+ path('accounts/', include('django.contrib.auth.urls')),
]
This will include the following URL patterns::
- ^login/$ [name='login']
- ^logout/$ [name='logout']
- ^password_change/$ [name='password_change']
- ^password_change/done/$ [name='password_change_done']
- ^password_reset/$ [name='password_reset']
- ^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']
- ^reset/done/$ [name='password_reset_complete']
+ accounts/login/ [name='login']
+ accounts/logout/ [name='logout']
+ accounts/password_change/ [name='password_change']
+ accounts/password_change/done/ [name='password_change_done']
+ accounts/password_reset/ [name='password_reset']
+ accounts/password_reset/done/ [name='password_reset_done']
+ accounts/reset/<uidb64>/<token>/ [name='password_reset_confirm']
+ accounts/reset/done/ [name='password_reset_complete']
The views provide a URL name for easier reference. See :doc:`the URL
documentation </topics/http/urls>` for details on using named URL patterns.
