Назад | Перейти на главную страницу

WSGI / APACHE - «ImportError: нет модуля с именем сайта»

Я пытаюсь запустить веб-сайт django с помощью WSGI. Коробка работает под управлением centos 5 с python 2.6.

Я пытаюсь использовать дистрибутив anaconda из континуальной аналитики, установленной в / usr / local / lib / anaconda /.

Я построил mod_wsgi с помощью ./configure --with-python = / usr / local / lib / anaconda / bin / python /

Я добавил в /etc/httpd/conf/httpd.conf следующее:

<Directory "/var/www/cgi-bin">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>

#wsgi-scripts
WSGIPythonHome /usr/local/lib/anaconda/bin
WSGIScriptAlias /test /var/www/wsgi-scripts/test

<Directory "/var/www/wsgi-scripts">
    Order allow,deny
    Allow from all
 </Directory>

но я получаю следующие сбои импорта:

[Fri Mar 08 16:44:24 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_wsgi/3.4    
Python/2.7.3 configured -- resuming normal operations

[Fri Mar 08 16:44:24 2013] [info] Server built: Feb 13 2012 22:31:42
 ImportError: No module named site
 Could not find platform independent libraries <prefix>
 Could not find platform dependent libraries <exec_prefix>

Может ли кто-нибудь указать, в чем моя проблема?