Open sasikumar1978k opened 1 year ago
I am having the same problem. I am running bootstrap v5.2.3 and I think the issue is because bootstrap v5 no longer includes jQuery but I am not sure if this is true and, if true, is causing the problem
Came across the same issue.
Solved it by loading jQuery before the form.media in the html template:
<!-- Load jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
{{ form.media }}
You need to be sure to load jQuery before form.media like the comment above. Otherwise you could use and install django-bootstrap4 and follow the steps in the documentation, django-bootstrap4 includes jQuery. Also keep in mind, django-bootstrap5 does not include jQuery so you would need to include it separately.
You have to load jQuery before form.media. This message is only visible when DEBUG=True