Django Admin - change header 'Django administration' text

后端 未结 18 2304
眼角桃花
眼角桃花 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:43

    You just override the admin/base_site.html template (copy the template from django.contrib.admin.templates and put in your own admin template dir) and replace the branding block.

提交回复
热议问题