2011-07-25 10 views
0

mod_wsgiサイトのintegration with djangoチュートリアルに従っています。私は自分のサイトを読み込もうとしたときに次のエラーを受け取りました。前のtutorialのテストスクリプトがありました。ここで私のApacheサーバからのエラーログは、私はdjangoが正常にインストールされている、私はPythonを実行しているときに私はそれが壊れたリンクの原因は何か他のものでなければならないと仮定します。djangoモジュールを読み込むときにApache ImportError

[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設定は2番目のチュートリアルで強調されているように現時点では基本的なものです。

すべてのポインタがありがとう、ありがとう。

答えて

2

mod_wsgiがビルドされているPythonのバージョンでDjangoをインストールするか、DjangoがインストールされているPythonのバージョンのmod_wsgiをビルドします。

関連する問題