Add the following URL patterns for password restoration to the urls.py file of the account application:
# reset password urlspath('password_reset/', auth_views.PasswordResetView.as_view(), name='password_reset'),path('password_reset/done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),path('reset/done/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
Add a new file in the templates/registration/ directory of your account application and name it password_reset_form.html. Add the following code to it:
{% extends "base.html" %}{% block title %}Reset ...