New to django here. I am trying to implement password reset functionality in my app.I am using the console email backend.
I am using django 2.x and python 3.5.x. When I enter the email and hit submit I get following error Kindly tell me how to get rid of this error.
NoReverseMatch at /reset/. Reversefor'password_reset_confirm' with
keyword arguments '{'uidb64': 'NQ', 'token':'533-3b115e87321ed5f71bbe'}'
not found
root urls.py
from django.contrib import admin
import boards
from django.urls import include, path, re_path
from django.contrib.auth import views as auth_views
urlpatterns = [
path('boards/', include('boards.urls')),
path('reset/', auth_views.PasswordResetView.as_view(
template_name='boards/password_reset.html',
email_template_name='boards/password_reset_email.html',
subject_template_name='boards/password_reset_subject.txt',
), name='password_reset'),
path('reset/done/', auth_views.PasswordResetDoneView.as_view(
template_name='boards/password_reset_done.html'
), name='password_reset_done'),
re_path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(
template_name='boards/password_reset_confirm.html'),
name='password_reset_confirm'),
path('reset/complete/', auth_views.PasswordResetCompleteView.as_view(
template_name='boards/password_reset_complete.html'
), name='password_reset_complete'),
path('setting/password/', auth_views.PasswordChangeView.as_view(template_name = 'boards/password_change.html'),name='password_change'),
path('setting/password/done/', auth_views.PasswordChangeDoneView.as_view(template_name='boards/password_cha nge_done.html'), name='password_change_done'),
path('admin/', admin.site.urls),
]
It shows error during template rendering at the following line
{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}