1👍
Your static tag isn’t closed, but also, STATIC_ROOT
must be an absolute path to a directory where collectstatic
can copy all the static files to.
So typically you’ll have settings;
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
To close your tag;
{% load static %}
<img src="{% static 'myapp/mini.jpg' %}" alt="My image"/>
Source:stackexchange.com