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配置只是第二個教程中突出顯示的基礎。
任何指針,將不勝感激,謝謝。