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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -