2👍
Your chdir
, home
, socket
directives all use /root/
as their base, which is root
user’svhome directory and therefore other users don’t have access there. Also there might be some SELinux limitations.
Try to create a separate folder for your project, i.e. in /home/
(/home/www-data
), make sure your www-data
user has access to it and rights, and move your project and venv there, then change the settings (including socket
) and try again.
0👍
This can be solved easily by adding a 0 (0www-data) before the user name.
If you don’t care about safety, cause it grants root.
- [Answered ]-Django: Update object from view, with no model or template
- [Answered ]-AttributeError: "QuerySet" doesn't have attribute 'model'
- [Answered ]-Django – Mulitple excludes in template filter
- [Answered ]-Django Rest Framework SlugRelatedField: field may not be null
Source:stackexchange.com