什么是 python Web 框架

发布于 2024-10-07 03:18:49 字数 206 浏览 1 评论 0原文

我在一些地方问过这个问题,但从未得到完全直接的答案。我听说过很多关于Web框架的知识,但只知道一个基本的了解。好吧,Web 框架是安装在像 apache 这样的服务器架构之上还是它自己的东西? 我读过很多有关 Web 框架的文章,并且喜欢我读到的内容,但我只能访问简单的免费 apache Web 主机。 Python 可以在上面工作,因为我已经测试过它,但我没有足够的自由来安装不同类型的软件等。

I've asked this question on some places but I never get a completely straight answer. I've heard a lot about web frameworks and only know a basic understanding. Okay is a web framework installed on top of server architecture like apache or is it its own thing?
I've read a good amount about web frameworks and I like what I read, but I only have access to simple free apache web hosts. Python works on it because I've tested it but I don't have a whole lot of freedom on it to install different kinds of software and such.

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

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

发布评论

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

评论(2

小霸王臭丫头 2024-10-14 03:18:49

它可以是“它自己的东西”,这意味着它可以在没有 Apache 的情况下侦听端口和服务请求;或者它可以在 Apache 或任何其他 Web 服务器下运行,例如作为 CGI 脚本。有关易于理解的概述,请参阅 http://bitworking.org/news/Why_so_many_Python_web_frameworks

请参阅 Web 应用程序框架到底是什么?,它回答了一个非常类似的问题。

It can be "its own thing", meaning it can listen on a port and service requests without Apache; or it can run under Apache or any other web server, for example as a CGI script. For an easy-to-swallow overview, see http://bitworking.org/news/Why_so_many_Python_web_frameworks

Also see What exactly is a web application framework?, it answers a very similar question.

偏爱你一生 2024-10-14 03:18:49

Web 框架是一个工具包,旨在使使用某种语言更轻松地处理 HTTP 请求。它通常提供 URL 路由和 HTML 模板等功能,并且可以选择提供 ORM。它可能有也可能没有自己的网络服务器。在 Python 上,它们通常被写入 WSGI,其中有很多容器。

A web framework is a toolkit designed to make working with HTTP requests within a certain language easier. It usually provides things like URL routing and HTML templating, and may optionally provide a ORM. It may or may not come with its own web server. On Python they are usually written to WSGI, of which there are plenty of containers.

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