I am using jinja and want to pass a variable into a URL but it is now happening.
<pre><code>{% for x in data %}
  &lt;tr class="table-row"&gt;
      &lt;td&gt;{{ forloop.counter }}&lt;/td&gt;
      &lt;td&gt;&lt;label&gt;{{ x.0 }}&lt;/label&gt;&lt;/td&gt;
      &lt;td&gt;&lt;img src="{% static 'lang/hi_IN/font/**x.1**' %}"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;label style="font-size:20px"&gt;  {{ x.2 }}&lt;/label&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input style="font-size:20px;text-align:center" type="text" value={{x.2}} size=3 title="Text"&gt;&lt;/td&gt;
        &lt;td&gt;&lt;label&gt; {{x.3}}&lt;/label&gt;&lt;/td&gt;
      &lt;/tr&gt;
{% endfor %}
</code></pre>

<p>I want to pass this <strong>x.1</strong> value to the url so how can i do that? value 0f <strong>x.1</strong> is like <strong>images/1.jpg</strong>.</p>

<p>I have never used jinja or django, but I believe you just need to separate the variable form the string.</p>

<pre><code>&lt;td&gt;&lt;img src="{% static 'lang/hi_IN/font/' + x.1 %}"&gt;&lt;/td&gt;
</code></pre>

<p>or the equivalent of this in jinja.</p>

python html django-templates jinja2