Tornado or Django works with CGI?

南笙酒味 提交于 2019-12-08 01:48:00

问题


Tornado is a webserver + framework like Django but for real-time features.

On my server I don't have a python module or wsgi module so I thought CGI. Is there a way to get Tornado ( or Django ) works by using CGI folder ? If yes, Could you explain me how do I do that ?


回答1:


flup provides a CGI-to-WSGI adapter, but you really should consider using something like FastCGI instead.




回答2:


Main feature of Tornado is that it is high performance web-server written in Python, for creating web applications using Python programming language.

Running Tornado as CGI application negates the very reason it exists, because running CGI scripts is expensive in terms of performance, and most probably there is no way to run Tornado as CGI script.



来源:https://stackoverflow.com/questions/2537065/tornado-or-django-works-with-cgi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!