Re: Django 2 NoReverseMatch (Default Django Reset Password View)

2018-09-15 Thread Jason
so, Django has a couple views for password resets. First is the actual password reset page, which sends a POST request, then redirects to Done which is the template returned to the server. What's happening here is Django can't find the URL name password_reset_done, and throws this error If yo

Re: Django 2 NoReverseMatch (Default Django Reset Password View)

2018-09-15 Thread Emprex KG
I found the solution by adding success_url to the path path('reset_password/', PasswordResetView.as_view(template_name='accounts/reset_password.html', success_url='/account/reset_password/done'), name='reset_password'), On Saturday, September 15, 2018 at 12:58:49 PM UTC+1, Emprex KG wr

Django 2 NoReverseMatch (Default Django Reset Password View)

2018-09-15 Thread Emprex KG
Hey Everyone, I have been getting to grips wit Django over the last week no real issue :D However today since adding namespaces to my apps, I have gotten this error NoReverseMatch at /account/reset_password/ Reverse for 'password_reset_done' not found. 'password_reset_done' is not a