title: best practice including javascript in django template
body: <p>Previously I used to do like this in a template</p>
  
  <pre><code>&lt;html&gt;
  ...
  &lt;script&gt;
   {% include "myapp/includes/jquery-1.7.1.min.js" %}
  {% include "myapp/includes/myscript.js" %}
  &lt;/script&gt;
  ...
  </code></pre>
  
  <p>But this causes all the js code to be shown on the page source.</p>
  
  <p>I am not using any Form in my template, so can I use Media class for adding js?</p>
  
  <p>Should I just use <code>&lt;script src=".."</code>  or link ref=".." for adding javascript files? Which is the better way?</p>