mirror of https://github.com/django/django.git
Fixed typos in docs/ref/contrib/admin/index.txt
This commit is contained in:
parent
56c87b51ab
commit
a4cc622363
|
@ -2808,18 +2808,34 @@ a pattern for your new view.
|
|||
|
||||
.. _auth_password_reset:
|
||||
|
||||
Adding a password-reset feature
|
||||
Adding a password reset feature
|
||||
-------------------------------
|
||||
|
||||
You can add a password-reset feature to the admin site by adding a few lines to
|
||||
You can add a password reset feature to the admin site by adding a few lines to
|
||||
your URLconf. Specifically, add these four patterns::
|
||||
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
url(r'^admin/password_reset/$', auth_views.PasswordResetView.as_view(), name='admin_password_reset'),
|
||||
url(r'^admin/password_reset/done/$', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
|
||||
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
|
||||
url(r'^reset/done/$', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
|
||||
url(
|
||||
r'^admin/password_reset/$',
|
||||
auth_views.PasswordResetView.as_view(),
|
||||
name='admin_password_reset',
|
||||
),
|
||||
url(
|
||||
r'^admin/password_reset/done/$',
|
||||
auth_views.PasswordResetDoneView.as_view(),
|
||||
name='password_reset_done',
|
||||
),
|
||||
url(
|
||||
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
|
||||
auth_views.PasswordResetConfirmView.as_view(),
|
||||
name='password_reset_confirm',
|
||||
),
|
||||
url(
|
||||
r'^reset/done/$',
|
||||
auth_views.PasswordResetCompleteView.as_view(),
|
||||
name='password_reset_complete',
|
||||
),
|
||||
|
||||
(This assumes you've added the admin at ``admin/`` and requires that you put
|
||||
the URLs starting with ``^admin/`` before the line that includes the admin app
|
||||
|
|
Loading…
Reference in New Issue