我在一个学校项目的网站上工作。最近,该网站被学校的IT人员搬到了新的服务器上。我发现该网站无法加载。
我是django和python的新手,所以我现在非常迷失......
我将非常感谢任何建议或意见!非常感谢!
错误日志显示:
Traceback(最近一次调用最后一次):文件“application.fcgi”,第19行, 在runfastcgi中(method =“threaded”,daemonize =“false”)文件 “/home/foldera/Envs/django1.6/lib/python2.7/site-packages/django/core/servers/fastcgi.py” 第182行,在runfastcgi WSGIServer(get_internal_wsgi_application()中, ** wsgi_opts).run()文件“/home/foldera/Envs/django1.6/lib/python2.7/site-packages/flup/server/fcgi.py”, 第114行,在run ret = ThreadedServer.run(self,sock)文件中 “/home/foldera/Envs/django1.6/lib/python2.7/site-packages/flup/server/threadedserver.py” 第84行,在运行clientSock中,addr = sock.accept()socket.error:[Errno 22]无效的论点
fcji设置:
#!/home/spatialtest/Envs/django1.6/bin/python
# Set up the virtual environment:
import os, sys
os.environ.setdefault('PATH', '/bin:/usr/bin')
os.environ['PATH'] = '/home/spatialtest/Envs/django1.6/bin:' + os.environ['PATH']
os.environ['VIRTUAL_ENV'] = '/home/spatialtest/Envs/djano1.6/bin'
os.environ['PYTHON_EGG_CACHE'] = '/home/spatialtest/Envs/django1.6/bin'
os.chdir('/home/spatialtest/public_html/spatialtest')
# Add a custom Python path.
sys.path.insert(0, "/home/spatialtest/public_html/spatialtest")
# Set the DJANGO_SETTINGS_MODULE environment variable to the file in the
# application directory with the db settings etc.
os.environ['DJANGO_SETTINGS_MODULE'] = "django_project.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")