+ 4

Why this picture in ~/Desktop/myshop/shop/product in jdango don't display in website?

<header> <figure> <a href="#"><img src={% static 'shop/layer19.png ' %}"></a> </figure> </header>

9th Oct 2020, 7:42 PM
Zahra Kheiroddin
Zahra Kheiroddin - avatar
6 Respuestas
+ 6
Is it because it's on your local computer and not the web server?
10th Oct 2020, 12:18 AM
Sonic
Sonic - avatar
+ 4
{{ url_for('static', filename='path') }}
11th Oct 2020, 5:51 PM
Syed Ahmed Raza Shah
Syed Ahmed Raza Shah - avatar
+ 2
It didn't work
9th Oct 2020, 8:15 PM
Zahra Kheiroddin
Zahra Kheiroddin - avatar
+ 2
What is the error exactly? And what did you expect??
9th Oct 2020, 9:00 PM
Nariman Tajari
Nariman Tajari - avatar
+ 1
paste in template above the <head> tag: include static
9th Oct 2020, 7:46 PM
Shadoff
Shadoff - avatar
+ 1
In which folder your django project lives. Use relative path.
9th Oct 2020, 11:28 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar