【发布时间】:2011-07-25 21:08:27
【问题描述】:
我正在关注 mod_wsgi 网站上的 integration with django 教程,在尝试加载我的网站时收到以下错误,我在之前的 tutorial 中的测试脚本工作正常。这是我的 apache 服务器的错误日志,我已经很好地安装了 django,我可以在运行 python 时导入它,所以我认为它一定是导致链接断开的其他原因。
[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 配置目前只是基本的,如第二个教程中强调的那样。
任何指点将不胜感激,谢谢。
【问题讨论】:
标签: python django apache mod-wsgi