Home > Mobile >  How to change the database name display in django admin site?
How to change the database name display in django admin site?

Time:08-21

Is it possible to change change the database name in django admin site?

Just like how I change the following:

admin.site.site_header = "Administrator"

admin.site.site_title = "Administrator"

admin.site.index_title = "Admin"

enter image description here

CodePudding user response:

There are two options, you can do it manually, or you can do it through the help of an external python library

Manually

is by creating custom enter image description here


You can change the app name by adding verbose_name under app.py

from django.apps import AppConfig

class PharmacyConfig(AppConfig):
    name = 'pharmacy'
    verbose_name = 'Your Home Page'
  • Related