I’m struggling on how to properly set up my directory and file permissions for my Django apps on my Droplet. I have both Nginx and Gunicorn. I tried setting the permissions on my Development Test machine at home to 755 for Directories and 644 for Files. I soon discovered my Virtual environment bin files would not execute properly. Should the bin files in VENV be set to higher than 644? Should the VENV directory and files have permissions other than 755/644? I do not want to break my apps in production. I’ve tried Google and searching for answers on this, but have not found much. Any ideas would be appreciated.
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!
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.