我如何在我的~/public_html中创建一个简单的FCGI程序,它将被执行,将web请求发送到我的金字塔网站?在
在django中,使用下面的代码对我很好:
#!/usr/local/bin/python2.6
import sys
import os
sys.path.append('/home/username/local/lib/python2.6/site-packages')
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproj.settings'
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
我现在卡住了。顺便说一句,这是我学习金字塔的第二天。在
我自己并没有使用过FastCGI,但是将基于Paster的WSGI应用程序连接到FastCGI的指南应该是相同的(例如挂架、涡轮齿轮、金字塔,都使用Paster for WSGI)。在
我发现对我来说有意义的指南在:http://turbogears.org/2.1/docs/main/Deployment/FastCGI.html
挂接任何基于粘贴器的wsgi应用程序的关键是调度.fcgi文件。。。在
相关问题 更多 >
编程相关推荐