django-bootstrap-datepicker-plus icon indicating copy to clipboard operation
django-bootstrap-datepicker-plus copied to clipboard

You have to load jQuery before form.media. This message is only visible when DEBUG=True

Open sasikumar1978k opened this issue 2 years ago • 3 comments

You have to load jQuery before form.media. This message is only visible when DEBUG=True Screenshot from 2023-07-11 12-35-00

sasikumar1978k avatar Jul 11 '23 07:07 sasikumar1978k

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

Steveo00 avatar Sep 04 '23 09:09 Steveo00

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 }}
        ```

ashsmith88 avatar Sep 07 '23 15:09 ashsmith88

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.

Marco0201 avatar Sep 25 '23 05:09 Marco0201