I'm learning to deploy Django application with Nginx on top of Ubuntu. As far as I know
/var/www/<project_root> is one common place to place the Django project.
I'm not sure if
/var/www is considered to be the good and safe practice for the project or is there some other options that are considered more appropriate. Also I'm not totally sure who should be the owner of the project dir and which permissions should it have.
- Where should I place the Django project in Ubuntu filesystem?
- Which user should own the project directory?
- What permissions should the project directory and files
I know there is no definitive answer for these guestions, but I'm pretty sure there are some common good practices that are widely considered to be safe.