擅长:python、mysql、java
<p>Wagtail已经在官方文档中使用<a href="https://github.com/stephenmcd/django-overextends">django-overextends</a>提供了解决方案:</p>
<p>要替换默认徽标,请创建一个模板文件<code>your_app/templates/wagtailadmin/base.html</code>,该文件重写block branding\u徽标,如下所示:</p>
<pre class="lang-html prettyprint-override"><code>{% overextends "wagtailadmin/base.html" %}
{% block branding_logo %}
<img src="{{ STATIC_URL }}images/custom-logo.svg" alt="Custom Project" width="80" />
{% endblock %}
</code></pre>
<p>有关详细信息,请查看<a href="http://docs.wagtail.io/en/v1.3.1/advanced_topics/customisation/branding.html">Wagtail Custom branding</a>。在</p>