Django URL Reset Password Error

0

I have the following problem with the authentication system URLs of Django .

I request to reset my password, an email arrives with the following link:

link

After that, I go to that link and it takes me to the following URL:

link

The problem is there, where I get the following error:

NoReverseMatch at /account/reset/MQ/set-password/ Reverse for 'password_reset_confirm' with no arguments not found. 1 pattern(s) tried: ['account/reset/(?P<uidb64>.+)/(?P<token>.+)/$']

In the file urls.py I have:

url(r'^reset/(?P<uidb64>.+)/(?P<token>.+)/$', auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm')

I also tried this way:

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.PasswordResetConfirmView.as_view(), name='password_reset_confirm')

But there is no case! It breaks and I throw 500 error.

It's Django 2.1. Did someone happen to him? What am I missing?

In Django 1.11 it works for me as well. I await your answers. Thank you very much !!!

    
asked by Lucas Shoobridge 08.08.2018 в 14:40
source

0 answers