‘staticfiles’ is not a registered tag library

访问原文

‘staticfiles’ is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache i18n l10n log static tz

原因:django 3 已经弃用

staticfiles现在已弃用,您必须以{% load static %}旧方式加载它{% load static from staticfiles %}

https://docs.djangoproject.com/zh-CN/1.9/ref/templates/builtins/#std:templatetag-static
3.0版的发行说明
https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-3-0
该staticfiles和admin_static模板标签库将被删除。