Я новичок в django и работаю над сбросом пароля. Я использую ссылку для установки нового пароля, но когда я отправляю форму, я получаю следующую ошибку.
Page not found (404)
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/profile/reset-password/confirm/Ng/set-password/index.html
urls.py
from django.urls import path, reverse_lazy, reverse
from . import views
from django.contrib.auth.views import (
LoginView,LogoutView,PasswordResetView,PasswordResetDoneView,PasswordResetConfirmView,PasswordResetCompleteView
)
app_name='accounts'
urlpatterns=[
path('',views.home,name='accounts_home_page'),
path('login/',LoginView.as_view(template_name='accounts/login.html'),name='login_page'),
path('logout/',LogoutView.as_view(template_name='accounts/logout.html'),name='logout_page'),
path('register/',views.registration,name='register_page'),
path('profile/',views.profile,name='profile'),
path('profile/edit_profile/',views.edit_profile,name='edit-profile'),
path('profile/change-password/',views.change_password,name='edit-profile'),
path('profile/reset-password/',PasswordResetView.as_view(template_name='accounts/reset_password.html',success_url = reverse_lazy('accounts:password_reset_done'),email_template_name='accounts/reset_password_email.html'),name='password_reset'),
path('profile/reset-password/done/',PasswordResetDoneView.as_view(template_name='accounts/password_reset_done.html'),name='password_reset_done'),
path('profile/reset-password/confirm/<uidb64>/<token>/',PasswordResetConfirmView.as_view(template_name='accounts/password_reset_confirm.html',success_url = reverse_lazy('accounts:password_reset_complete')),name='password_reset_confirm'),
path('profile/reset-password/complete/',PasswordResetCompleteView.as_view(template_name='accounts/password_reset_complete.html'),name='password_reset_complete'),
]
Надеюсь на решение.