Downloaded an image of Django Reinhardt and saved it in static/images 
folder as django.jpeg. In the settings.py file created a variable 
STATIC_DIR and assigned it os.path.join(BASE_DIR, 'static') and again 
assign this variable to STATICFILES_DIR and kept the STATIC_URL as 
"/static/". In the index.html written that:
<img src="{% static 'images/django.jpeg' %}" alt='django reinhardt' /> 

But after doing all this I am getting only the text of alt and no image. 
Where I am wrong? Please help.

-- 
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/bbaac132-6d24-43a3-8278-fe5878c0b694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to