I am trying to load static files into my Django project and it just isn't working.
Inside my settings.py file I have defined the below:
STATIC_URL = '/static/'
STATICFILE_DIRS = os.path.join(BASE_DIR,'static')
This is a screenshot around how my project structure is setup:
When the template is rendered only the text shows up - no image. HTML below to show the syntax behind static file loading:
<!doctype html>
{% load static %}
<html class="no-js" lang="">
<head>
</head>
<body>
<h1>Test</h1>
<img src="{% static 'test.png' %}" alt="">
</body>
</html>
Any help is really appreciated