1đź‘Ť
âś…
Maybe you have not included jQuery.
First, in your settings.py define your static directory.
STATIC_URL = '/static/'
Create a static folder in your app folder. Place the jQuery js file in app_name/static/app_name/js. Then in your template:
<head>
{% load staticfiles %}
<script src="{% static "app_name/js/bootstrap.min.js" %}"></script>
</head>
👤navid
Source:stackexchange.com