#35610: Reverse for 'password_reset_complete' not found
-------------------------------------+-------------------------------------
Reporter: miturralde_django | Type: Bug
Status: new | Component:
| Uncategorized
Version: | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
In summary, I'm trying to create a password reset button. To do this, I've
added some .html to: EMSCOP < EMSCOP_Database < templates < admin. And,
also add the following lines of code in: EMSCOP_Database < urls.py, which
you can see below:
path('reset_password/',
auth_views.PasswordResetView.as_view(template_name='admin/password_reset_form.html'),
name='password_reset'),
path('password_reset_done/',
auth_views.PasswordResetDoneView.as_view(template_name='admin/password_reset_done.html'),
name='password_reset_done'),
path('password_reset_confirm/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(template_name='EMSCOP_Database/templates/admin/password_reset_confirm.html'),
name='password_reset_confirm'),
path('password_reset_complete/',
auth_views.PasswordResetCompleteView.as_view(template_name='admin/password_reset_complete.html'),
name='password_reset_complete'),
Everything's fine until I try to enter the mail and get the following
error: Reverse for 'password_reset_confirm' not found
'password_reset_confirm' is not a valid view function or pattern name.
The problem is that in: Lib\site-packages\djangocontributor.html does not
read the following: {{ protocol }}://{{ domain }}{% url
'password_reset_confirm' uidb64=uid token=token %}.
So my problem is essentially with the folder distribution.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35610>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.