I'm getting mad with this error.
-- I've setup Apache and wsgi configuration as usual, but this time I'm on CentOS instead of Debian, and I don't know it very well.
Anyway, I tried all the ways to give mod_wsgi the chance to peak from my virtualenv libraries, both setting them with python-path argument to WSGIScriptAlias, and using site.addsitedir in my wsgi module.
Printing sys.path gives me all the possible folders:
['/var/www/vhosts/vzqn-znxs.accessdomain.com/httpdocs/imn', '/home/giohappy/.virtualenvs/django/lib64/python2.6', '/home/giohappy/.virtualenvs/django/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg', '/usr/lib/python2.6/site-packages/pip-1.4.1-py2.6.egg', '/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/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info', '/var/www/vhosts/vzqn-znxs.accessdomain.com/httpdocs/imn', '/home/giohappy/.virtualenvs/django/lib/python2.6/site-packages']
but still I get ImportError: No module named django.core.wsgi
Could you help to sort it out?
giovanni
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/00266e62-34b1-49d8-a981-761c374568a9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment