为了让mod_wsgi能够在CentOS 5.4上运行,我已经在instructions here之后添加了python 2.6作为可选库。除了当试图ping服务器Apache的日志打印此错误的配置似乎罚款:CentOS:make python 2.6参见django
mod_wsgi (pid=20033, process='otalo', application='127.0.0.1|'): Loading WSGI script '...django.wsgi'. [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] mod_wsgi (pid=20033): Target WSGI script '...django.wsgi' cannot be loaded as Python module. [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] mod_wsgi (pid=20033): Exception occurred processing WSGI script '...django.wsgi'. [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] Traceback (most recent call last): [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] File "...django.wsgi", line 8, in [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] import django.core.handlers.wsgi [Sat Mar 27 16:11:45 2010] [error] [client 171.66.52.218] ImportError: No module named django.core.handlers.wsgi
当我去我的python2.6的安装的命令行,并尝试'进口Django的,该模块没有找到(导入错误)。但是,我的默认python 2.4安装(仍然工作正常)能够成功导入。我如何将python 2.6指向django?
在此先感谢。
这样做,谢谢! 通过同样的逻辑,我现在回去并安装其他用于并行安装的Python插件(MySQLdb,wadofstuff序列化器等) – Neil 2010-03-28 00:04:51