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
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>
<IfModule !wsgi_module>
LoadModule wsgi_module modules/mod_wsgi.so
</IfModule>
--
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 modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
linux_vdso.so.1 => (0x00007fff4c6ae000)
libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007fb7830e0000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb782ec30000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fb782cbe000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fb782abb000)
libm.so.6 => /lib64/libm.so.6 (0x00007fb782837000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb782402000)
/lib64/ld-linux-x86-64.so.2 (0x000003ad6c00000)
sys.version = '2.6.6 (r266:84292, Nov 21 2013, 10:50:32) \n[GCC 4.4.7 21020313 (Red Hat 4.4.7-4)]'
sys.prefix = '/usr'
No worries I was just making sure the post didn't get lost. I did the django.get_version() and it returned 1.6.1. I'm using apache 2.2 and I shouldn't have to use Require all granted and I get a authtype not set. I should be using the order and granted correct?
Thanks,
Justin
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/ZnHn8AYnAbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
I got /usr/lib/python2.6/site-packages/django/__init__.pyc
I am pretty sure I'm not using a virtual environment but I'd there a way to tell if django is installed in system wide python? I am not sure if django was installed via rpm or from the repo or how it was installed as it was already installed
Graham,
I got what's pasted below
sys.version = '2.6.6 (r266:84292, Nov 21 2013, 10:50:32) \n[GCC 4.4.7 21020313 (Red Hat 4.4.7-4)]'
sys.prefix = '/usr'
import sys
def application(environ, start_response):
status = '200 OK'
output = 'sys.path = %s' % repr(sys.path)
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
sys.path= ['/path/to/myapplication', '/usr/lib64/python26.zip','/usr/lib64/python2.6/','/usr/lib64/python2.6/plat-linux2','/usr/lib64/python2.6/lib-tk','/usr/lib64/python2.6/lib-old','/usr/lib64/python2.6/lib-dynload','/usr/lib64/python2.6/site-packages','/usr/lib64/python2.6/site-packages/gtk2-0','/usr/lib/python2.6/site-packages','/usr/lib/python2.6/site-packages/setuptools-0.6cll-py2.6.egg-info']Graham,
That did it. I didn't have the permissions set correctly on that folder. Once I updated those everything started displaying correctly. Thought I had looked there before but apparently not.
Thanks for all your help in tracking this issue down
Visit this group at https://groups.google.com/group/modwsgi.
Hi Graham,
It was the same issue but no worries. They blew away the server I was working on and I'm going to another project anyway. I was trying to get them in a good position but it'll have to be done at some other point.
Thanks again for your quick response and being willing to assist.
Justin