apache - Unable to create a file on Ubuntu server using Flask and Python -
i using f = open('name.json','w+') create new file , write it. unable create file. apache server logs show "no such file exists."
solved giving absolute path. trying combinations of paths , gave absolute path /var/www/arxiv/static/data/name.json , worked.
Comments
Post a Comment