While we can now easily add a user with a new password and a profile, we are currently unable to change a password in the admin. The goal of this section is to create a new page to change passwords. Creating a change password page is surprisingly difficult and requires a complete override of the
To begin, we import a set of familiar tools, as shown in Example 23.34.
1 from django.conf.urls import url . ... 10 from django.contrib.messages import success 11 from django.core.exceptions import \ 12 PermissionDenied 13 from django.http import ( 14 Http404, HttpResponseRedirect) ...