Permission Denied error with Django while uploading a file

前端 未结 4 2019
不思量自难忘°
不思量自难忘° 2020-12-23 17:01

I currently have a simple model defined, with a photoupload feature using django thumbnails plugin.

but when i try to upload it gives me the following error:

<
4条回答
  •  臣服心动
    2020-12-23 17:57

    Just in case you run into this when running your development server. I ran the development server as root like this: sudo python manage.py runserver 0.0.0.0:80 in order to test the site with an iPad in the same LAN network. The cache files generated in that session belonged to root. So when I ran the project the next day NOT as root I got the permission denied error.

提交回复
热议问题