我在 webfaction 上设置了一个 django 项目,在所有配置之后网站显示 200 错误。在 apache 错误日志中,这是信息:
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] mod_wsgi (pid=803732): Target WSGI script '/home/hammad/webapps/gccfishing/gccFishing/gccFishing/gccFishing/wsgi.py' cannot be loaded as Python module.
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] mod_wsgi (pid=803732): Exception occurred processing WSGI script '/home/hammad/webapps/gccfishing/gccFishing/gccFishing/gccFishing/wsgi.py'.
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] Traceback (most recent call last):
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] File "/home/hammad/webapps/gccfishing/gccFishing/gccFishing/gccFishing/wsgi.py", line 27, in <module>
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] from django.core.wsgi import get_wsgi_application
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] File "/home/hammad/webapps/gccfishing/lib/python2.7/site-packages/django/core/wsgi.py", line 1, in <module>
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] from django.core.handlers.wsgi import WSGIHandler
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] File "/home/hammad/webapps/gccfishing/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 4, in <module>
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] import logging
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] File "/usr/local/lib/python3.2/logging/__init__.py", line 26, in <module>
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] import sys, os, time, io, traceback, warnings, weakref
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] File "/home/hammad/webapps/gccfishing/lib/python2.7/warnings.py", line 107
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] except _OptionError, msg:
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] ^
[Fri Nov 01 15:04:38 2013] [error] [client 127.0.0.1] SyntaxError: invalid syntax
有人可以帮忙吗?