[Answered ]-Static js doesn't load — Django

2👍

This is probably related to your last question

That javascript file is only included in the default block. since you’re overriding it, it is not included. So move the block scope below the javascripts to include extra js

{% block js %}
<script src="{{ STATIC_URL }}js/jquery.1.12.4.min.js"></script>
<script src="{{ STATIC_URL }}js/p5.js"
{% endblock %}

should be

<script src="{% static 'js/jquery.1.12.4.min.js' %}"></script>
<script src="{% static 'js/p5.js' %}"></script>
{% block js %}{% endblock %}
👤Sayse

Leave a comment