I am encountering an issue with my Django project. While my static files for images and CSS are loading correctly, the JavaScript files are not. I have created a folder named "static" within my app with the following structure: static/js/my_app/
, where my JavaScript files are stored.
Below is the section of my template that includes JavaScript scripts:
<!-- Scripts -->
<script src="{% static 'js/landing/jquery.min.js' %}"></script>
<script src="{% static 'js/landing/jquery.scrolly.min.js' %}"></script>
<script src="{% static 'js/landing/jquery.dropotron.min.js' %}"></script>
<script src="{% static 'js/landing/jquery.scrollex.min.js' %}"></script>
<script src="{% static 'js/landing/util.js' %}"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="{% static 'js/landing/main.js' %}"></script>
Here is the relevant part of my settings.py file related to static files:
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
Any assistance would be appreciated. Thank you!