tags:

views:

66

answers:

1

When inckuded the following in urls.py (r'^settings/users/change_password/$', 'django.contrib.auth.views.password_change'

The following shows up on the screen,

Reverse for '' with arguments '()' and keyword arguments '{}' not found.

And i am trying to give the access to users to change their passwords.

Whats wrong with the above code.....

Thanks........

+1  A: 

The password_change view redirects to django.contrib.auth.views.password_change_done - this needs to be listed in your urls.py.

Alternatively, add the post_change_redirect argument to your password_change view to tell it where to redirect to:

(r'^settings/users/change_password/$', 'django.contrib.auth.views.password_change', {'password_change_done': '/settings/users/password-changed'})

Also see the relevant documentation.

Mauve