I need to use a variable for creation of a url for the img html tag. I use python - Django.
Here's a hardcoded example of what I need:
<img src="{% static '/images/1.png' %}" alt="">
And here's what I tried (but failed):
I want to use x.id variable (currently it equals 1), in my url. Something like this:
<img src="{% static '/images/'{{ x.id }}'.png' %}" alt="">
What am I missing?