Ask coding questions

← Back to all posts
Why aren't images showing up in flask?
h
p1ckl3

I have been coding html for a while but recently started with flask. I was working on a project but realized that an image would not show up whatever I did. Anyone know how to solve this issue?

Answered by ruiwenge2 [earned 5 cycles]
View Answer
Voters
p1ckl3
Comments
hotnewtop
ruiwenge2

the img folder must be in a static folder and the image url is /static/img/Lucie.jpeg

p1ckl3

Oh wow. Thanks @ruiwenge2.

ruiwenge2