Can not include jquery in django template

瀏覽次數:33 次
跳到第一則未讀訊息

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

未讀,
2014年9月23日 下午2:15:142014/9/23
收件者: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

未讀,
2014年9月23日 下午2:49:122014/9/23
收件者: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

未讀,
2014年9月23日 下午2:51:372014/9/23
收件者:django...@googlegroups.com
You need </script>
回覆所有人
回覆作者
轉寄
0 則新訊息