I'm trying to get a stand alone server up and running and running into some 
difficulties. I'm receiving the error below. I'm also not too familiar with 
django and mod_wsgi in general so this might be a rookie mistake.

I'm running RedHat 6.6, apache 2.2.15, django 1.6.1, python 2.6.6, mod_wsgi 
3.2

mod_wsgi(pid=<PID>): Target WSGI script '/path/to/my/application/wsgi.py' 
cannot be loaded as Python module.
mod_wsgi(pid=<PID>): Exception occurred process WSGI script 
'path/to/my/application/wsgi.py'.
Traceback (most recent call list): File /path/to/my/application/wsgi.py, 
line 14 in <module> From django.core.wsgi import get_wsgi_application 
ImportError: no module name django.core.wsgi


When I run it as python wsgi.py it doesn’t seem to have an issue. 

I will also put my .conf files below in case they are needed. I didn't edit 
the httpd.conf file but instead created a seperate conf file.

/etc/httpd/conf.d/myapplication.conf
Alias /static/ /path/to/myapplication

<Directory /path/to/myapplication>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias / /path/to/myapplication/wsgi.py
WSGIPythonPath /path/to

<Directory /path/to/myapplication>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>

/etc/httpd/conf.d/wsgi.conf
<IfModule !wsgi_module>
LoadModule wsgi_module modules/mod_wsgi.so
</IfModule>

The weird thing is it is up and running on a few other servers with the 
same layout but those work and this one doesn't. I've been trying to come 
up with ideas but I'm kind of stuck and it might come to do with my lack of 
knowledge of mod_wsgi and django.

Thanks for any and all assistance.

-- 
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 http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to