Skip to content Skip to sidebar Skip to footer

Wsgi.py Of Myproject Cannot Read Settings.py

When I open the brower with apache, it occurs an error, ImportError: No module named myproject.settings My OS is centOS7. And following codes are what I did. $ cd $ git clone git

Solution 1:

I don't think Apache concatenates several WSGIPythonPath definitions, the last one will overwrite previous definition. Try putting all paths in one line instead:

WSGIPythonPath /home/jap/dj/myproject:/home/jap/.pyenv/versions/3.5.1/lib/python3.5/site-packages

Post a Comment for "Wsgi.py Of Myproject Cannot Read Settings.py"