我有两个组合。 我愿知道,有什么区别,什么是更好和更快的?
第一编:
#!/home/user/bin/python
import sys, os
sys.path.insert(0,"/home/user/projects/")
os.environ[ DJANGO_SETTINGS_MODULE ] = django_project.settings
from flup.server.fcgi import WSGIServer
from django.core.handlers.wsgi import WSGIHandler
WSGIServer(WSGIHandler()).run()
第二组:
#!/home/user/bin/python
import sys, os
sys.path.insert(0,"/home/user/projects/")
os.environ[ DJANGO_SETTINGS_MODULE ] = django_project.settings
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
感谢!
<>Update: