django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag library. Must

{% load staticfiles %} {% load adminstatic %} 是在 Django 2.1的方法, 在 Django 3.0已经修改了

{% load staticfiles %}
{% load static from staticfiles %}
{% load adminstatic %}
需要修改成

{% load static %}

posted @ 2020-09-22 10:11  smallsunshine  阅读(446)  评论(0)    收藏  举报