Django Admin - change header 'Django administration' text

后端 未结 18 2340
眼角桃花
眼角桃花 2020-11-28 01:14

How does one change the \'Django administration\' text in the django admin header?

It doesn\'t seem to be covered in the \"Customizing the admin\" documentation.

18条回答
  •  情话喂你
    2020-11-28 01:38

    The easiest way of doing it make sure you have

    from django.contrib import admin
    

    and then just add these at bottom of url.py of you main application

    admin.site.site_title = "Your App Title"
    admin.site.site_header = "Your App Admin" 
    

提交回复
热议问题