{% load staticfiles %} <html> <head> <title>DJANGO PAGE</title> </head> <body> <H1>Hello this is index.html</H1> <h1>Hi this contains an image also</h1> <img src="{% static "images/abc.jpg" %}"> </body> </html>
This is my index.html.It is unable to fetch the static image from my settings.py
试试这个你加载静态文件,但你已经使用了静态
<img src="{% staticfiles "images/abc.jpg" %}">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.