I have two versions of python installed on ubuntu -- 3.7 and 2.7. When I add in a "normal" sites-enabled/000-default.conf config, it is trying to use python2.7, so it doesn't find the installed application:
WSGIScriptAlias / home/david/data-py/wsgi.py
<VirtualHost *:80>
<Directory /home/david/data-py>
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
ImportError: No module named django.core.wsgi
However, if I specify the python path of my project (which was created using $ virtualenv ., and I start the file with:
WSGIScriptAlias / home/david/data-py/wsgi.py
WSGIPythonHome /home/david/data-py
Then I get another error:
ImportError: No module named site
What does this mean and how can I get the project installed in apache/wsgi?