简体   繁体   English

更改 Django 管理站点

[英]Changing the Django admin site

I wanted to change the "Django administration" text on the default Django admin site.我想更改默认 Django 管理站点上的“Django 管理”文本。 But the docs do not make it that, clear.但是文档并没有说清楚。 Is there a way that I can do it once i have collected all the static files?一旦我收集了所有 static 文件,有什么办法可以做到吗?

admin.site.site_header = "your Admin name "
admin.site.site_title = "Your Admin Portal"
admin.site.index_title = "Welcome to YOur Researcher Portal"

In The admins.py file在 admins.py 文件中

  1. First change the header先换header

    Second will channge the title其次将更改标题

    Third will change the index tilte第三将改变索引倾斜度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM