500 Internal Server Error when attempting to create a saved file using static fig.savefig(os.path.join('static', 'filename')
fig.savefig(os.path.join('static', 'assets/plots/heatmap.png'), dpi=75)
I had followed https://help.pythonanywhere.com/pages/StaticFiles/ to setup my static files with the following:
URL: /static/
Directory: /home/dennislee04/portfo/static
There is this full actual directory on my app server: /home/dennislee04/portfo/static/assets/plots
I have also reloaded the App & refreshed the web-browser on my page, after adding this static directory. Same error. Internal Error. Is there something wrong with how I had setup the Static Directory? This python code works locally on my workstation, just not when I have it up in my App Server.