Django cms 3.4.1管理员dlogo [英] Django cms 3.4.1 admin dlogo

查看:104
本文介绍了Django cms 3.4.1管理员dlogo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改django管理员徽标。
我正在使用django cms 3.4.1。

I want to change django admin logo. I'm using django cms 3.4.1.

我试图在以下位置找到徽标:

I tried to find logos in:

cms/templates/cms/

 /media/cms/images/cms_toolbar.png

我发现的所有内容都是 myproject / static / django_cms_style / img中的favicon.jpg。
我删除了它,

All I found was favicon.jpg in myproject/static/django_cms_style/img. I deleted it, but doesnt work.

我也尝试过使用CSS。我隐藏了一个徽标,但徽标仍在管理页面和登录页面中。

I tried with css too. I hide one logo, but logo in admin page and login page, they are still there.

div.cms .cms-toolbar-item-logo a:before {
    display: none;
}


推荐答案

CMS为此使用了另一个应用程序称为 djangocms-admin-style 的管理员样式。并且可以通过覆盖此处显示的 branding.html 文件来自定义管理员的顶部;

CMS uses another app for it's admin styling called djangocms-admin-style. and the top of admin can be customised by overriding the branding.html file seen here;

https://github.com/divio/ djangocms-admin-style / blob / master / djangocms_admin_style / templates / admin / inc / branding.html

因此,如果您创建 admin / inc / branding.html 在项目的模板目录中,您将能够更改内容。

So if you create admin/inc/branding.html in your project's templates directory you will be able to change the content.

这篇关于Django cms 3.4.1管理员dlogo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆