【发布时间】:2019-04-15 09:53:27
【问题描述】:
我想在我的 Django 项目的 base.html 中放置一个网站图标,但它似乎不起作用。它不会在浏览器控制台中显示任何错误,但我在python manage.py runserverconsole 中没有收到“GET”消息。
<link rel="icon" href="{% static 'assets/img/favicon.ico' %}"/>
其他静态文件如 JS 和 CSS 工作正常。
这是我的目录打印:1
还有我的 python shell 打印:2
【问题讨论】:
标签: html django django-templates favicon