title: Access Javascript variable in Django Template
body: <p>Is there is any way to access <code>javascript</code> variable in <code>Django</code> template <code>tags</code> ?<br>
  Can i do something like this , </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;body&gt;
      &lt;script&gt;
          var javascriptvar=0;
      &lt;/script&gt;
      {% if javascriptvar==0 %}
           do this
      {% else %}
           do this
      {% endif %}
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>