0

I have an app

main/
├── asgi.py
├── celery.py
├── __init__.py
├── settings.py
user/
├── admin.py
├── apps.py
├── __init__.py
├── migrations
│   ├── 0001_initial.py
│   ├── ...
├── models.py
├── tests.py
├── urls.py
└── views.py

In admin.py the admin page title is set like this:

from django.contrib import admin
admin.site.site_header = settings.HOME_TITLE

Which works on localhost:8000/admin/.

But http://localhost:8000/accounts/password_reset/ still shows the standard Django Administration title. Is there a way to change that consistently or would I have to create my own template for this?

enter image description here

Soerendip
  • 7,684
  • 15
  • 61
  • 128

1 Answers1

0

Make this changes in project urls.py:

from django.contrib import admin
admin.site.site_header = settings.HOME_TITLE
admin.site.site_title = settings.HOME_TITLE
NKSM
  • 5,422
  • 4
  • 25
  • 38