'staticfiles' is not a registered tag library.

使用Django 时python manage.py runserver发生如下错误

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

主要是因为:staticfiles is now deprecated and you have to load it as {% load static %} instead of old way {% load static from staticfiles %}

Release notes for 3.0 version
https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-3-0

The staticfiles and admin_static template tag libraries will be removed.

你可能感兴趣的:(Python)