html - How to get <img src="{% static "{{request_filename}}" %}" alt="My image"/> working -
so im passing variable via views.py
return render_to_response(html, {'file': file}) into html
<img src="{% static "{{file}}" %}" alt="my image"/> working however file not respond in html. can please me.
instead of
{% static "{{file}}" %} just write
{% static file %}
Comments
Post a Comment