Question

I am getting an error when submitting an image from django admin. (OSError [Errno 13] Permission denied)

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…


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

“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/