Forums

Download Link from WebApp

My App needs to download a csv file from a Subfolder in my Project directory. I've used Flask send_from_directory. One problem I face is, the URL is getting set as http://selvaprakash.pythonanywhere.com/home/selvaprakash/BillD/CSV/<file.csv> and not as https://www.pythonanywhere.com/user/selvaprakash/files/home/selvaprakash/BillD/CSV/<file.csv>

With the first URL it gives an error like the File is not found. Can you guide me on how to do this?

Regards, Selva.

See the docs on static files: http://help.pythonanywhere.com/pages/StaticFiles/