title: How to use JavaScript with Django?
body: <p>I would like to pass data from a View to a javascript file.</p>
  
  <p>I tried the way I thought would work, adding the following code to the bottom of my HTML <code>&lt;head&gt;</code> document and loaded static files.</p>
  
  <pre><code>script src="{% static 'javascript.js' %}"
  </code></pre>
  
  <p>But when I went to write <code>var a = {{ c }};</code> it did not work.</p>
  
  <p>How should I approach this?</p>