Wednesday, March 2, 2016

Re: variable to a template

original path  og your image please.
 Also setting for STATIC_ROOT  from setting.py send please

Many thanks,

Serge


+380 636150445
skype: skhohlov

On Wed, Mar 2, 2016 at 12:41 PM, 'luca72' via Django users <django-users@googlegroups.com> wrote:
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.

--
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/CADTRxJOVdo5oM38qBOgAVYD7cSVMDip%3DB4FW5TAHK85bWgG8dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment