Django Reset Password
A simple way to code a reset password mechanism in Django
This page explains how to implement a password reset mechanism in Django.
Django comes with a password reset feature. You can extend these features to modify the default behavior.
For example, the views
from django.contrib.auth
comes with support for login, logout, and all the password reset flow.
First of all, in the urls.py
file, add the following routes.
These routes and views use the default Django templates.
But how do you use your own templates?
Well, Just create a directory named registration
in your TEMPLATE
directory.
When looking at the code of the views.PasswordResetView
class, you can notice the name of the template used.
Then inside the registration
directory created recently, create a file named password_reset_form.html
Last updated