[Fixed]-Static files with bootstraps directory

1👍

You are trying to include a complete directory into your HTML, which is impossible. You should adjust the path in {% static 'bootstrap-3.3.7' %} to the location of the actual file you need.

<script src="{% static 'bootstrap-3.3.7/dist/js/boostrap.min.js' %}"></script>

Note, don’t forget to add the css file too, you need to include them both individually. Which will probably be:

<link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.3.7/dist/css/boostrap.min.css' %}"/>

Leave a comment