[Answer]-Django Static Javascript Asset with JQuery Functions

1👍

Just make sure you load the jQuery script file before you load your own static .js file.

Here is an example of what you might put in your html head tag if you are hosting it yourself (I put in the Django handlebar syntax for your convenience):

<script src="{{ STATIC_URL }}jquery.min.js"></script>
<script src="{{ STATIC_URL }}myfile.js"></script>

Leave a comment