title: Get javascript variable's value in Django url template tag
body: <p>It is known that there's a DRY way of directing to an URL by using django template tag "url", say</p>
  
  <pre><code>{% url "someview" arg1=X %}
  </code></pre>
  
  <p>Here, I want "X" to be the value of a javascript variable, say <code>tmp</code>. But the following doesn't work</p>
  
  <pre><code>&lt;script&gt;
      ...{% url "someview" arg1=tmp %}...
  &lt;/script&gt;
  </code></pre>
  
  <p>How should I get the value inside a template tag?</p>