擅长:python、mysql、java
<p><code>staticfiles</code>现在不推荐使用,您必须将其作为<code>{% load static %}</code>加载,而不是原来的<code>{% load static from staticfiles %}</code></p>
<p>检查注释</p>
<ul>
<li><a href="https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#std:templatetag-static" rel="nofollow noreferrer">https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#std:templatetag-static</a></li>
<li>3.0版本的发行说明<a href="https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-3-0" rel="nofollow noreferrer">https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-3-0</a>
<blockquote>
<p>The <strong>staticfiles</strong> and admin_static template tag libraries will be removed.</p>
</blockquote></li>
</ul>