21.2 auth App Anatomy: Password Views

Much as it does for login() and logout(), Django supplies all of the views necessary for interacting with passwords. All we need to do is add these views to our URL patterns and create the templates these views will use by default.

Django’s views for changing passwords, as well as the templates, are as follows:

Image password_change()

Image registration/password_change_form.html

Image password_change_done()

registration/password_change_done.html ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.