Hello,
I want to save a plot in my /static/images folder. But I get an error:
FileNotFoundError: [Errno 2] No such file or directory: '/static/images/output.png'
I tried (nothing works):
fig.savefig("/static/images/output.png")
fig.savefig("static/images/output.png")
fig.savefig("mysite/static/images/output.png")
The only one which works is (but this save the image in my home/username folder ):
fig.savefig("output.png")
What do I wrong?
BR Marco