Ask coding questions

← Back to all posts
[FLASK] Adding images to a website?
MrVoo

I'm trying to add images into a Flask website, but I guess it's not actually in the website just by being in the repl. Anyone know the code for this?

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
MrVoo
Comments
hotnewtop
ch1ck3n

your file tree should look like this:

and name of the folder SHOULD BE static and only static

you can access the image by adding

to your html