Skip to main content

How to Create a Password Reset View

Note that if you use the provided above, rather than including django.contrib.auth.urls, note that the “password_reset_confirm” URL pattern should be changed. The token can now be longer than 20 characters so it would not match the pattern provided here, causing an error when no matching URL pattern is found.

The current auth URL patterns are more forgiving, so the line should be changed to something like this:


See on