[Answered ]-Where to place wsgi script in django project

1👍

yes, you are supposed to create a new directory say apache and place your wsgi scrip in this directory. I don’t know why settings.py and wsgi.py are created in the same place by default!

1👍

Go read the documentation on the Django site:

It is more up to date as to what to do for newer versions of Django.

0👍

Create a folder named apache in your project directory and put wsgi.py file there. Then in apache configuration file add following line to point to that file:

WSGIScriptAlias / /path/to/my/project/apache/wsgi.py
# where /path/to/my/project/ is your project path

Leave a comment