I am deploying my Django app for the first time ever and all I basically need is to be able to add images using Django admin and be able to serve them on the website. I am using the one-click Django install app with Django 1.11.10 and Python 2.7.12 running on Ubuntu 16.04.
Static files are working perfectly, but when I try to upload images from the Django admin, I get an error: OSError [Errno 13] Permission denied…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
“Permission Denied” sounds like a case of incorrect File Permissions for the directory on your server where django is trying to save the file, see if the instructions in this post help you:
https://www.adamerispaha.com/2016/12/14/file-permissions-for-django-media-uploads/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.