Can not include jquery in django template

33 views
Skip to first unread message

Артём Мутерко

unread,
Sep 23, 2014, 2:15:14 PM9/23/14
to django...@googlegroups.com
When I try to include jQuery to my template index.html,

<script type="text/javascript" src='{% static "js/jquery.min.js" %}'/>

I get an blank page. Html source code is loading but I get just white page

Fred Stluka

unread,
Sep 23, 2014, 2:49:12 PM9/23/14
to django...@googlegroups.com
Change it to:

<script type="text/javascript" src='{% static "js/jquery.min.js" %}'> </script>

--Fred
Fred Stluka -- mailto:fr...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/793a14fb-c435-4737-92b8-dcd277fb9abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Collin Anderson

unread,
Sep 23, 2014, 2:51:37 PM9/23/14
to django...@googlegroups.com
You need </script>
Reply all
Reply to author
Forward
0 new messages