Django Tutorial - Video 8 - Password Reset

This tutorial covers resetting the password for user accounts


Add password reset URL hooks to urls.py

    (r'^resetpassword/passwordsent/$', 'django.contrib.auth.views.password_reset_done'),
    (r'^resetpassword/$', 'django.contrib.auth.views.password_reset'),
    (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
    (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
		

Copy template files for password reset

cp -r /path/to/django/contrib/admin/templates/registration/ /path/to/django/root/templates/