I have developed a python script that creates html maps using folium.
In addition, I have used Flask to create a number of webpages that show these html source files
I also have a page which can prompt a user to load a source file which if submitted, will update the html maps files.
When doing this locally, I can save to my local template drive however when all is loaded on pythonanwhere, I note, the source template files fail to refresh.
I have read some tutorials, and they suggest my best option is to load all files into a GIT repo and push/pull/hook between GIT and python anywhere. (I still need to do more reading on this)
If it is agreed, that this is the option for storing files, can I ask, is there away for me to update my templates in GIT after a user loads a new file and triggers my code to run??
Today, the file will run however the maps do not update in python anywhere.
Feedback appreciated.