TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python Web Frameworks – Development Server

44 点作者 dabent超过 13 年前

6 条评论

nas超过 13 年前
FYI, Quixote (<a href="http://quixote.ca" rel="nofollow">http://quixote.ca</a>) provides a bunch of options too:<p><pre><code> python -m quixote.server.simple_server python -m quixote.server.medusa_server python -m quixote.server.twisted_server python -m quixote.server.fastcgi_server python -m quixote.server.scgi_server </code></pre> simple_server uses BaseHTTPServer and is thus single-threaded and blocking but works fine for development. I like FastCGI or SCGI with a dedicated webserver as a frontend for production.
bwooceli超过 13 年前
(posted to blog as well) would like to know more about the strengths/weaknesses of these development resources. For example, one of the things i love about the django dev server is that it "listens" to all the project dependencies and restarts when any file is saved (which has saved me from trying to understand why something I fixed didn't work and discovering that it's because the changes weren't .pyc'd)
评论 #3430525 未加载
评论 #3430988 未加载
perfunctory超过 13 年前
That's not a bad overview, but what's the point? How one way is better than the other? Does it make any difference which development server to use?
评论 #3431736 未加载
评论 #3430517 未加载
jtchang超过 13 年前
Sometimes I have problems with runserver and IE. I forgot exactly why (probably multiple requests) but fixed it by using this:<p><a href="https://github.com/ashchristopher/django-concurrent-server" rel="nofollow">https://github.com/ashchristopher/django-concurrent-server</a><p>Really nice module.
jamesgeck0超过 13 年前
The twisted.web server is nice because you can both develop on it and deploy it with minimal configuration. Using twisted.web.wsgi.WSGIResource, you can use it to serve normal WSGI sites, too. It's handy for running multiple sites on different ports.<p>It doesn't automatically reload on file changes, but PyQuitter[1] can provide that functionality, so it's not a huge issue.<p>1. <a href="https://github.com/ludios/Pyquitter" rel="nofollow">https://github.com/ludios/Pyquitter</a>
danko超过 13 年前
What this article taught me is the mind-boggling plethora of Python web frameworks out there. I'm heavily into Django myself, and it does well enough that I'm curious as to the demand for the other frameworks. How many Python web frameworks do you really need in 2012?
评论 #3430719 未加载
评论 #3430747 未加载
评论 #3431430 未加载