I'm trying to display an image to a website using flask.
I have a scheduled task that creates the image file for me and puts it into
mysite/static/image.png
I then have an html template with the following code for the image
<img src="{{url_for('static', filename='image.png')}}"/>
When I visit the site, it is displaying an old version of the image that is no longer located anywhere in my directories(or my pythonanywhere account for that matter).
Can anyone assist? Also can I assume that when my scheduled task runs and updates this file that the website will automatically reflect the changes without having to reload the web app?
Thanks