2👍
You have a wrong URL pattern defined: Django tries to find testdb.views.django.contrib.auth.views
as you define the password_change view inside patterns('testdb.views',
.
Add a second pattern:
urlpatterns += patterns('django.contrib.auth.views',
url(r'^user/(?P<user_id>\d+)/user_edit/password/$', 'password_change')
)
That should resolve your issue.
0👍
cfedermann has a solution to your issue, but I’m confused as to why you’ve defined the password_change URL in the first place. This functionality is built-in to the admin, and – like all the other admin pages – the URL is defined already by the admin code itself.
- [Answered ]-Django creates incorrect MySQL LIKE statement
- [Answered ]-ImportError: No module named bs4 in django
Source:stackexchange.com