I want to display images on a webpage I am creating with Flask. I am using a html template so that I can display different images for different pages.
With lots of trial and error, I have found that the only way I can display images is if they are saved in a sub-folder called 'static'. I would like to be able to use relative directories to retrieve images from another directory on my PC.
Why is Flask only allowing me to retrieve images if they are saved in the 'static' folder and is there a way I can retrieve them from elsewhere?