B
B
blazer052019-04-23 09:11:21
Django
blazer05, 2019-04-23 09:11:21

How to solve Permission Denied?

Hello.
When sending a post request for files from the site by an authorized and not authorized user, I get an access error
Exception Value: [Errno 13] Permission denied: '/home/blazer/myshop3/media/review/19/04/23/djangodesktop-1280x1024.jpg'
Yes blazer group, how to make authorized and non-authorized users upload files to /media/review/ directory?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-04-23
@blazer05

read this article . everything is described in detail here
you need rights to the folder not lower than 644

S
Sergey Gornostaev, 2019-04-23
@sergey-gornostaev

Give write access to the media directory and its subdirectories to the user under which Django is running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question