Dec-26-2021, 11:37 AM
Hi,
I have the following code but for some reason on the paths don't work from the urls file!
I have the following code but for some reason on the paths don't work from the urls file!
from django.urls import path from . import views from .views import UserEditView, PasswordsChangeView from django.contrib.auth import views as auth_views urlpatterns = [ path('login_user/', views.login_user, name="login"), path('logout_user/', views.logout_user, name="logout"), path('register_user/', views.register_user, name="register_user"), path('edit_profile/', UserEditView.as_view(), name="edit_profile"), path('password/', PasswordsChangeView.as_view(template_name='authenticate/change-password.html')), path('reset_password/', auth_views.PasswordResetView.as_view(template_name='authenticate/password_reset.html'), name="reset_password"), path('reset_password_sent/', auth_views.PasswordResetDoneView.as_view(template_name='authenticate/password_reset_sent.html'), name="password_reset_done" ), path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(template_name='authenticate/password_reset_form.html'), name="password_reset_confirm"), path('reset_password_complete/', auth_views.PasswordResetCompleteView.as_view(template_name='authenticate/password_reset_done.html'), name="password_reset_complete"), ]the below is not loading the template file:
path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(template_name='authenticate/password_reset_form.html'), name="password_reset_confirm"),instead it is bringing the one that is used by django as attached.