Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sasikumar1978k opened this issue Jul 11, 2023 · 3 comments

Comments

@sasikumar1978k
Copy link

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

@Steveo00
Copy link

Steveo00 commented Sep 4, 2023

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

@ashsmith88
Copy link

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

@Marco0201
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants