[Answer]-Serving Static Files [Beginner]

1๐Ÿ‘

โœ…

1: Make sure settings.DEBUG is True

2: Give absolute path to directory that contains static media. In this case, /PATH/TO/mysite/static/

3: Make sure calls to static files actually point to settings.STATIC_URL

Your example points to relative url css/bootstrap.css. It should probably point to {{ STATIC_URL }}css/bootstrap.css unless you got lucky and your page is routed at a URL that matches your STATIC_URL exactly.

With condition 1 and 2 met, static media is served AT settings.STATIC_URL FROM settings.STATICFILES_DIRS and other staticfiles finders.

Leave a comment