Friday, 9 October 2020

'staticfiles' is not a registered tag library.

 {% load staticfiles %} and {% load admin_static %} were deprecated in django 2.1, and removed in django 3.1.

If you have any of the following in your template:

{% load staticfiles %}
{% load static from staticfiles %}
{% load admin_static %}

You should replace the tag with simply:

{% load static %}

No comments:

Post a comment

Note: only a member of this blog may post a comment.

TypeError: argument of type 'WindowsPath' is not iterable

 Please make to modify settings.py file: DATABASES = { 'default' : { 'ENGINE' : 'django.db.backends.sqlite3&...