title: Jquery with Django
body: <p>JQuery is not detected in my app Django :</p>
  
  <p>I have a html page links.html :</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/static/css/mysheet.css"&gt;
  &lt;script type="text/javascript" src="/static/js/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/static/js/myscript.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have a html base  base.html :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="us"&gt;
  &lt;head&gt;
     &lt;meta charset="utf-8"&gt;
     {% include "links.html" %}
  &lt;/head&gt;
  &lt;body&gt;
  {% load static %}
  ...
  </code></pre>
  
  <p>But when I want use js code in a page  X.html, it don't work :</p>
  
  <p>X.html :</p>
  
  <pre><code>{% extends "base.html" %}
  {% block title %} &lt;title&gt; page X &lt;/title&gt; {% endblock %}
  {% block content %}
      &lt;a href="#" id="linkID"&gt; Blabla &lt;/a&gt;
  {% endblock %}
  </code></pre>
  
  <p>myscript.js</p>
  
  <pre><code>$("#linkID").click(function(){
      alert("ok it's good");
  });
  </code></pre>
  
  <p>Nothing is display...
  But when I use simple javascript (withoud jquery and ajax), it work !</p>
  
  <p>In my settings.py, I have 'django.contrib.staticfiles' in INSTALLED_APPS and I have this :</p>
  
  <pre><code>STATIC_URL = '/static/'
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, "static"),
  )
  </code></pre>
  
  <p>Thank you for your help !</p>