[Django]-Where to put django files on server?

3👍

You should put the Django project anywhere on the machine except for the apache document root, for security reasons as you have pointed out.
You can then configure apache to pint to the location of your wsgi.py which can live in the Django project if you wish:

WSGIScriptAlias / <path to the wsgi.py>

I’m not aware of a standard place to put the Django project root directory, I guess it depends on the OS and the distribution.

👤Gruff

Leave a comment