Hello i have write this in a template:
-- {% for a in lista %}
<img src="{% static "mysite/scorr/{{a}}" %}" width="100" height="100" </img>
{% endfor %}
But i get no image
if i add just a <p> {{a}} </> i see that the file name is righ,
also if i direct write the file i get it
{% for a in lista %}
<img src="{% static "mysite/scorr/myfile.jpg" %}" width="100" height="100" </img>
{% endfor %}
can you tell me what is wrong
Thanks
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+unsubscribe@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/9a12167f-e919-4632-b77a-6d5acc80fd3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment