Tornado or Django works with CGI?

2019-05-19 05:50发布

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 ?

2条回答
劳资没心,怎么记你
2楼-- · 2019-05-19 06:00

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.

查看更多
Animai°情兽
3楼-- · 2019-05-19 06:13

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

查看更多
登录 后发表回答