Tornado or Django works with CGI?

2019-05-19 05:32发布

问题:

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.