Django “forgot your password”
Django has a nice but hidden Password reset feature. To use it, you have to uncomment the “forgotten your password?” link in the login form. This patch is an example how to do it.
Than you have to activate it in your main urls.py like this:
(r'^password_reset/$', 'django.contrib.auth.views.password_reset'), (r'^password_reset/done/$','django.contrib.auth.views.password_reset_done'),
You’re basically set here, although there are still some rough edges. One thing is that the emails sent out with the new password have some issues. One is variable substitutiuon -this patch (Ticket #2186) fixes it.
Another issue are that unwanted links might creep on your “password successfully reset” page. This patch fixes this issue.