TemplateSyntaxError - 'staticfiles' is not a registered tag library. Must be one of:

Pycharm中:

TemplateSyntaxError - 'staticfiles' is not a registered tag library. Must be one of:

{% load staticfiles %} and {% load adminstatic %} were deprecated
in Django 2.1, and removed in
Django 3.0.

If you have any of the following in your html:

{% load staticfiles %}

{% load static from staticfiles %}

{% load adminstatic %}

You should replace the tag with simply:(仅所有.html文件)

{% load static %}