[Django]-'staticfiles' is not a valid tag library: Template library staticfiles not found

20👍

You need to add

django.contrib.staticfiles

to INSTALLED_APPS

Documentation on configuring Static files

51👍

If you’re running Django 3 and were on an older version before, you need to replace:

{% load static from staticfiles %} or {% load staticfiles %}

with just:

{% load static %}

Source

👤Sam

Leave a comment