1👍
Try either
<img src="{{ STATIC_URL }}images/logo.png" alt="alternative text" />
or fixing your quotes
<img src="{% static 'images/logo.png' %}" alt="alternative text" />
and fixing your settings
STATICFILES_DIRS = ('assets', r'C:\Users\@#@#@#@#@\workspace\project\static'),
or
STATICFILES_DIRS = ('assets','C:\\Users\\@#@#@#@#@\\workspace\\project\\static'),
0👍
It’s worth asking whether or not you’ve used Django’s collectstatic
method after including the image in your assets folder.
- [Answer]-CMS for Django when upgrading app from 1.5.5 to 1.7.1
- [Answer]-In a Django web application, would large files or many unnecessary import statements slow down my server?
- [Answer]-Django: Current login user in a query list
- [Answer]-How to override django.utils.text.slugify function
Source:stackexchange.com