我设法更改了菜单和仪表板,但是如何更改登录和管理页面上的“徽标”(Word Django)?
见图片:
复制此文件以保存相同的结构 — https://github.com/django-admin-tools/django-admin-tools/blob/master/admin_tools/theming/templates/admin/base.html
然后{% render_theming_css %}添加后:
<style type="text/css">
#header #branding h1 {
background-image: url("../path/to/your/image.png");
}
</style>
这是有关如何重载模板的文档 — https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-vs-replacing-an-admin-template