Thank you for your response. It seems I needed:

from django.contrib.staticfiles.templatetags.staticfiles import static


and then from view.py, call static("image.png") and pass this to the context. 
Not sure why exactly this works,
so if you care to elaborate, I'm all for learning. Thanks.



On Friday, July 6, 2018 at 3:21:29 PM UTC-7, Xarala Academy wrote:
>
> Hi friend, 
>
> Try to change {{STATIC_URL}}  to <img  src="{% static 'images/image.jpg' 
> %}"> 
>
> 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+unsubscr...@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/228cbf59-fdda-4c41-8066-36a36e27ff51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to