Reputation: 12514
I try to achieve the following:
<img src="/static/teammembers/some_name">
but if I write <img src="{% static 'teammembers/{{ image }} %}">
in the template,
then the rendered output is
<img src="/static/teammembers/{{ image }}">
what am I doing wrong?
EDIT:
In my case the solution for this question does not work, since I use an automatic cachebuster (django-cachebuster).
Upvotes: 1
Views: 368