python - NoReverseMatch at /password_reset/done/ -




i have learned tutorial reset password in django. not able resolve the

error:noreversematch @ /password_reset/done

 django.contrib.auth import views auth_views  urlpatterns = [     url(r'^password_reset/$', auth_views.password_reset, name='password_reset'),     url(r'^password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),     url(r'^reset/(?p<uidb64>[0-9a-za-z_\-]+)/(?p<token>[0-9a-za-z]{1,13}-[0-9a-za-z]{1,20})/$', auth_views.password_reset_confirm,         name='password_reset_confirm'),      url(r'^reset/done/$', auth_views.password_reset_complete, name='password_reset_complete'),     ] 

your password_reset_done.html template incorrect. includes following url tag causing error.

{% url 'password_reset_confirm' uidb64=uid token=token %}  

however url belongs in password_reset_email.html template rendered , emailed user.

the password_reset_done.html template should tell user password has been reset , check email. tutorial linked shows valid template, have copied incorrectly.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -