Forums

Newly created static images not showing only on MOBILE

I have a script that runs and creates .png files and saves them to the static folder. Next it shows the newly created images along side some other images that have been in the static folder since inception.

Works fine on my desktop and my buddies desktop, but when we try on mobile phones... it doesn't show the newly created images, it only shows the other existing images. It only shows the "picture" image that shows when an image cannot be found.

Using Flask via python.

I am not using url direct to the files. Using /static/{example}.png

Any suggestions?

Did you set static files mappings? https://help.pythonanywhere.com/pages/StaticFiles

I have the static images mapped like this https://i.imgur.com/lV2vD7F.png

They are loose in the static file and the way I pull them to the file is by referring to the "/static/" folder.

It pulls the files correctly on my computer and friends computer, but it does not pull correctly on mobile.

that is not how you set up static file mappings for webapps.

Have you seen the link that pafk posted?