Luca,

You can't nest a variable evaluation (via {{}}) inside a tag
execution {%%}.  But you can put them side by side to achieve
the effect you want:

'{% static "mysite/scorr" %}'/{{a}}'

--Fred
------------------------------------------------------------------------
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
------------------------------------------------------------------------
On 3/2/16 8:04 AM, Andreas Schosser wrote:
Hi Luca,

             <img src="{% static "mysite/scorr/{{a}}" %}" width="100"
height="100" </img>
Try {% static "mysite/scorr/"|add:a %}

Andreas


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56D722C1.1080103%40bristle.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to