change page title of password reset form

25 views
Skip to first unread message

sum abiut

unread,
Jan 1, 2020, 5:13:16 PM1/1/20
to django...@googlegroups.com
How do you change the default page header of the password reset form? I did something like below but the default page still doesn't change.
admin.site.site_header = "testing"
image.png

Mike Dewhirst

unread,
Jan 1, 2020, 5:21:30 PM1/1/20
to django...@googlegroups.com
On 2/01/2020 9:12 am, sum abiut wrote:
> How do you change the default page header of the password reset form?
> I did something like below but the default page still doesn't change.

You need an admin template ... project/templates/admin/base-site.html
... which extends admin/base-site.html

Any blocks with the same name as the blocks in the extended template
will replace those blocks.




> admin.site.site_header ="testing"
> image.png
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPCf-y67K__Bi6f%3DOYgm9u2wozDWs2QDG3kqwTwoNk%3D4uyKK0g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPCf-y67K__Bi6f%3DOYgm9u2wozDWs2QDG3kqwTwoNk%3D4uyKK0g%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages