Opened 5 months ago

Closed 5 months ago

#35610 closed Bug (invalid)

Reverse for 'password_reset_complete' not found

Reported by: miturralde_django Owned by:
Component: contrib.auth Version:
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (1)

comment:1 by Tim Graham, 5 months ago

Component: Uncategorizedcontrib.auth
Resolution: invalid
Status: newclosed

Please see TicketClosingReasons/UseSupportChannels for places to get help.

Note: See TracTickets for help on using tickets.
Back to Top