0
我正在关注mod_wsgi站点上的integration with django教程,并且在尝试加载我的站点时收到以下错误,我在之前的tutorial中的测试脚本正常工作。这里是我的apache服务器的错误日志,我已经安装好了django,当我运行python时我可以导入它,所以我认为它必须是其他东西,这是导致断开连接的原因。加载Django模块时的Apache导入错误WSGI
[Mon Jul 25 20:44:14 2011] [error] [client 93.97.146.103] ImportError: No module named django.core.handlers.wsgi
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] mod_wsgi (pid=1851): Target WSGI script '/var/www/html/wsgi-scripts$
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] mod_wsgi (pid=1851): Exception occurred processing WSGI script '/va$
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] Traceback (most recent call last):
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] File "/var/www/html/wsgi-scripts/test.wsgi", line 10, in <module>
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] import django.core.handlers.wsgi
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] ImportError: No module named django.core.handlers.wsgi
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] mod_wsgi (pid=1853): Target WSGI script '/var/www/html/wsgi-scripts$
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] mod_wsgi (pid=1853): Exception occurred processing WSGI script '/va$
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] Traceback (most recent call last):
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] File "/var/www/html/wsgi-scripts/test.wsgi", line 10, in <module>
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] import django.core.handlers.wsgi
[Mon Jul 25 20:44:15 2011] [error] [client 93.97.146.103] ImportError: No module named django.core.handlers.wsgi
有没有人知道这是什么?我的httpd/apache配置只是第二个教程中突出显示的基础。
任何指针,将不胜感激,谢谢。