Home:ALL Converter>How do I override Django's administrative change password page?

How do I override Django's administrative change password page?

Ask Time:2009-01-16T00:39:01         Author:Huuuze

Json Formatter

I'd like to override Django's administrative "Change Password" page (change_password.html). As such, I've placed Django's "/contrib/admin/templates/registration/password_change_form.html" in my project's "/templates/admin/registration/password_change_form.html" directory. Unfortunately, this doesn't seem to do the trick.

At this point, I'm stumped. I'm guessing it has something to do with Django's /contrib/auth/urls.py file (which directs the the admin change password call to "django.contrib.auth.views.password_change"), but admin template changes have been trivial so far and I'm surprised this one doesn't follow suit.

Any thoughts?

Author:Huuuze,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/447512/how-do-i-override-djangos-administrative-change-password-page
semente :

You must use:\n\ntemplates/registration/password_change_form.html\n\n\nIf you still see the Django's Admin template, you must change the order of your INSTALLED_APPS (e.g if your template is inside some app, this app must appear before django.contrib.admin in INSTALLED_APPS)\n\nhttps://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.password_change",
2012-09-13T15:08:34
Peter Rowell :

A quick look at the source indicates you should place the template in:\n\n/templates/registration/password_change_form.html\n\n\nNote bene: there is no 'admin/' in there.",
2009-01-15T16:46:58
yy