Tornado 或 Django 可以与 CGI 配合使用吗?

发布于 2024-08-26 12:55:59 字数 166 浏览 4 评论 0原文

Tornado 是一个类似于 Django 的 Web 服务器 + 框架,但具有实时功能。

在我的服务器上,我没有 python 模块或 wsgi 模块,所以我想 计算机生成图像。 有没有办法通过使用 CGI 文件夹让 Tornado(或 Django)工作? 如果是,你能解释一下我该怎么做吗?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小伙你站住 2024-09-02 12:55:59

Tornado的主要特点是它是用Python编写的高性能Web服务器,用于使用Python编程语言创建Web应用程序。

将 Tornado 作为 CGI 应用程序运行就否定了它存在的根本原因,因为运行 CGI 脚本在性能方面代价高昂,而且很可能没有办法将 Tornado 作为 CGI 脚本运行。

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.

扛刀软妹 2024-09-02 12:55:59

flup 提供了一个 CGI 到 WSGI 适配器,但您确实应该考虑使用像 FastCGI 这样的东西。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文