Get your own Django server Result Size: 625 x 565
template.html
views.py
myfirst.js
 
{% load static %}
<!DOCTYPE html>
<html>
<script src="{% static 'myfirst.js' %}"></script>
<body>

<button onclick="myFunction()">Click me!</button>

<p>In myfirst.js you can see the myFunction function.</p>

</body>
</html>                  
127.0.0.1:8000/testing