Try to search your question here, if you can't find : Ask Any Question Now ?

Trying to run wsgi on Linode with apache with pipenv

HomeCategory: stackoverflowTrying to run wsgi on Linode with apache with pipenv
craig asked 1 week ago

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>/

In my virtualhost setup for apache I have:

WSGIScriptAlias / /var/www/webapps/dianarice/dianarice/
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 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.

1 Answers
Best Answer
naveen answered 1 week ago
Your Answer

3 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By :