Greetings,

Thank you for your help, in advance!  It has been a frustrating day.

I have a virtualenv configured with Python3.4.3 on RedHat release 7.2.

I configured mod_wsgi-3.4 as:
./configure --with-apxs=/usr/bin/apxs 
--with-python=/usr/local/dev/env/bin/python3
make 
sudo cp .libs/mod_wsgi.so /etc/httpd/modules/

--
My wsgi.py file reads:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 
"knack_djangoapp.settings_temp")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
--
--
In httpd.conf, I have:

<VirtualHost *:81>
  DocumentRoot /var/www/html/dev
  ServerName dev.domain.edu
  WSGIDaemonProcess dev 
python-path=/usr/local//dev/djangoapp:/usr/local/dev/env/lib/python3.4/site-packages/
 
lang='en_US.UTF-8' locale='en_US.UTF-8'
  WSGIProcessGroup dev
  WSGIScriptAlias / /usr/local/dev/djangoapp/wsgi.py process-group=dev
  <Directory /usr/local/dev/djangoapp/>
      <Files wsgi.py>
          Require all granted
      </Files>
  </Directory>
 </VirtualHost>
--

--
In my vrtualenv:
pip freeze gives:
Django==1.8.15
mod-wsgi==4.5.7
--

Upon starting httpd as /sbin/service httpd start, I get:
...Adding '/usr/local/dev/env/lib/python3.4/site-packages/' to path
...Target WSGI script '/usr/local/dev/djangoapp/wsgi.py' cannot be loaded 
as Python module.
...Exception occurred processing WSGI script 
'/usr/local/dev/djangoapp/wsgi.py'
...from django.core.wsgi import get_wsgi_application
...ImportError: No module named 'django'

I greatly appreciate any and all help.  I am at my wits' end.  mod_wsgi 
seems to be using the system python interpreter.  It is not using the 
virtualenv appropriately.

Thank you so much!

                 -Shanti


-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to