1👍
✅
I think you have a problem because of the wrong URLs definition, take a look at you urls.py
:
from django.contrib.auth import views as auth_views
urlpatterns = [
path('profiles/settings/', update_profile, name='update_profile'),
path('profiles/settings/', auth_views.PasswordChangeView.as_view(template_name='accounts/settings.html'),
name='password_change'),
]
You always hit update_profile
view instead of PasswordChangeView
. I think this is typo.
Source:stackexchange.com