Error- In Django after submitting email in "password-reset" page, I am getting this error.
NoReverseMatch at /accounts/password-reset/ Reverse for 'password_reset_done' not found. 'password_reset_done' is not a valid view function or pattern name.
My Code in urls.py file-
urlpatterns = [
url(r'^password-reset/',
auth_views.PasswordResetView.as_view(
template_name='accounts/password_reset.html'),
name='password_reset'),
url(r'^password-reset/done/',
auth_views.PasswordResetDoneView.as_view(
template_name='accounts/password_reset_done.html'),
name='password_reset_done'),
url(r'^password-reset-confirm/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(
template_name='accounts/password_reset_confirm.html'),
name='password_reset_confirm'),
]
I also created separate HTML files for all pages in "accounts" directory. By the way, I am following this tutorial on youtube - click here
password_reset.html Screenshot
password_reset_done.html Screenshot
password_reset_confirm.html screenshot
Github: Click Here