title: django 1.5 - How to use variables inside static tag
body: <p>I'm currently migrating all the static files references in my project to the new {% static %} tag that django 1.5 introduced, but I'm having a problem, in some places I use variables to get the content. With the new tag I can't, is there any way to solve this?</p>
  
  <p>Current code:</p>
  
  <pre><code>&lt;img src="{{ STATIC_URL }}/assets/flags/{{ request.LANGUAGE_CODE }}.gif" alt="{% trans 'Language' %}" title="{% trans 'Language' %}" /&gt;
  </code></pre>
  
  <p>What it should be (this doesn't work):</p>
  
  <pre><code>&lt;img src="{% static 'assets/flags/{{ request.LANGUAGE_CODE }}.gif' %}" alt="{% trans 'Language' %}" title="{% trans 'Language' %}" /&gt;
  </code></pre>