Open
Description
Hi!
This error occurs when the email is entered correctly:
django.urls.exceptions.NoReverseMatch: Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name.
And when the wrong email is entered, this response will be returned:
{
"detail": "Password reset e-mail has been sent."
}
(The result was the same in both logged in and logged out modes)
a part of my code:
from django.urls import include, path
urlpatterns = [
path('rest-auth/', include('rest_auth.urls')),
path('rest-auth/registration/', include('rest_auth.registration.urls')),
I also tried this code but it was not useful:
from django.urls import include, path, re_path
from rest_auth.views import PasswordResetConfirmView
re_path(r'^rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetConfirmView.as_view(),
name='password_reset_confirm'),
django-rest-auth == 0.9.5
Django == 3.2.9
python == 3.9.0
Metadata
Metadata
Assignees
Labels
No labels