Ask coding questions

← Back to all posts
Why is my picture not showing up?
h
VulcanWM (2342)

So I've made a function where it makes a random code with 10 letters or numbers and then it makes a pic which is a black background with the letters. But when i add the picture to the website, the pic doesn't show and just shows the file icon.
The page where you are supposed to see the picture is: https://type.vulcanwm.repl.co/play
Why is it not showing the pic?
And how can I fix it?

Answered by Coder100 (17111) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (17111)

anyways, all the images should be put in the static folder if that's what you are looking for.
https://stackoverflow.com/questions/12034949/flask-how-to-get-url-for-dynamically-generated-image-file

Coder100 (17111)

you don't have a code.png route.