简体   繁体   中英

Why is my sublimetxt3 giving error while loading static images?

 {% 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

1

2

试试这个你加载静态文件,但你已经使用了静态

<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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM