title: Why don't Django HTML tags work in strings?
body: <p>Lets say I have an image source as such:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;img src=&quot;{% static 'images/category1.png' %}&quot;&gt;
  </code></pre>
  <p>This works completely fine - it finds the image and displays it properly. However, its in a for-loop, so I'm going to have different images for each element (in this case, a different image for each category)</p>
  <p>For some reason, this doesn't work:</p>
  <pre class="lang-html prettyprint-override"><code>{% for cat in category %}
  ...
  &lt;img src=&quot;{% static 'images/{{cat.category_slug}}.png' %}&quot;&gt;
  ...
  {% endfor %}
  </code></pre>
  <p>I'm positive that the {{cat.category_slug}} variable has the correct name as my image, as this:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;{{cat.category_slug}}&lt;/p&gt;
  </code></pre>
  <p>shows 'category1' on my site, which is correct.</p>