[Answer]-Serve static files in Django. Need explanation

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

Leave a comment