1๐
โ
If you have any plan to use an alternative storage (for example using django-stroage
), you should use {% static ... %}
tag.
static
tag ask storage backend to return url
.
For default storage FileSystemStorage
, static
returns just settings.STAITC_URL
joined with the request file name.
load
loads custom tags, filters. To use static
, you need to load it because it is not part of libraries that is loaded by default.
๐คfalsetru
Source:stackexchange.com