I'm having this problem at the moment too. In our case, it's because we have a base template that inserts the jQuery library via a script tag towards the end of the document, just before the close of the body element. Since anything following a $ character in JS depends on jQuery, including the $(document).ready function call itself, we can't do anything with jQuery in a child template because the browser only includes the jQuery library when it receives it from the server. A possible solution is simply to move the <script> tag to the <head> element which would ensure that jQuery is available; however this would incur a small performance penalty. > >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4SkEUE-7c1IJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.