Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
{% load staticfiles %} {% include "{% static 'some.js' %}" %}
很难让它工作。 这里的正确语法是什么?
编辑。实际上,我正在尝试在此处包含一个 *.js 文件。 现在更有意义了吗?
怎么样:
{% include "some.html" %}
或者:
{% include "myapp/some.html" %}
?
在任何情况下,您都不能嵌套这样的标签。