November 2015
Beginner to intermediate
840 pages
26h 30m
English
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 ModelAdmin subclass.
To begin, we import a set of familiar tools, as shown in Example 23.34.
Example 23.34: Project Code
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) ...
Read now
Unlock full access