升级到 Django 3.0 后,我遇到了以下的
TemplateSyntaxError
错误:In template /Users/alasdair//myproject/myapp/templates/index.html, error at line 1
'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache i18n l10n log static tz
这是我的模板
{% load staticfiles %}
<img src="{% static 'my_image.html' %}">
Django==3.0.5
、djangorestframework==3.11.0
和django_rest_swagger==2.2.0
无法无缝配合使用。这将需要进行collectstatic
操作,然后再进行替换。 - JP Ventura