I am building my first Flask application on local machine and have issues with path to images that I use in my HTML.
My folder structure is very simple:
-templates folder
-assets folder
- cover.jpeg
- index.html
In my index.html I use relative path assets/cover.jpeg
which should show a picture in my homepage. When I refresh homepage, it shows image placeholder only. When I open this pic in a new tab, it opens URL:
http://127.0.0.1:5000/assets/cover.jpeg
and displays:
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
I then tried full path to core folder of my project /templates/assets/cover.jpeg
and got same thing, pointing now at
http://127.0.0.1:5000/templates/assets/cover.jpeg
It is probably something really silly, but I cannot make my picture displayed.