I have apache running with a virtual host on my linode ubuntu server. I’m trying to multiple django instances running under virtual hosts using pipenv. In my wsgi I have this set:
WSGIScriptAlias / /var/www/webapps/<appname>/<app path>/wsgi.py
In my virtualhost setup for apache I have:
WSGIScriptAlias / /var/www/webapps/dianarice/dianarice/wsgi.py WSGIDaemonProcess diversity_wagtail processes=2 threads=12 python- home=/home/bradrice/.local/share/virtualenvs/dianarice-oUQ6PYAF/ pytho n- path=/var/www/webapps/dianarice:/var/www/webapps/dianarice/dianarice:/home/bradrice/.local/share/virtualenvs/dianarice-oUQ6PYAF/lib/pytho n3.6/site-packages
However, I get this error:
ImportError: No module named django.core.wsgi
I can see django installed in my virtualenv and actually if I activate the virtual and do python3 manage.py runserver, I can run the app.
I can’t seem to get it to run in the browser under apache. Any help would be appreciated. I tried changing the permissions to the virtual to ownership for www-data. Still not working.