对于一般用途来说,哪一个是最容易上手的 Python Web 应用程序框架?
对于一般用途来说,哪一个是最容易上手的 Python Web 应用程序框架?
提到最简单 - 我的意思是学习曲线/时间很短,至少能够将其用于相当简单的应用程序。我之前曾参与过不平凡的 Ruby on Rails 项目,所以并不是我不能学习更复杂的框架,只是对于这个特定的应用程序,我不想花很多时间学习该框架我使用 - 因为这更多的是一个实验性应用程序来测试这个想法 - 请参阅下文了解更多信息。如果事实证明该应用程序的想法有用,那么在正确学习该框架之后,我可以毫不犹豫地更改为不同的框架并用该框架重写整个应用程序。
我想创建一个小型网络应用程序 - 一个个人生产力工具。至少最初,它仅供我个人使用,尽管后来我可能会考虑将其开放给其他人使用,无论条件如何。现在,我只想对这个想法进行原型设计,然后自己在日常工作中使用它一段时间,以了解该应用程序是否真的对我的工作效率有用。通过“一般用途”(在这个问题的标题中),我的意思是建议的Python Web应用程序框架不应专门用于任何特定领域,例如Zope可能(不确定)更适合创建 CMS(内容管理系统)。此外,除了所有 Web 应用程序框架固有或共有的任何限制之外,框架最好不应该对我可以做的事情施加限制。 (作为最后一句话的一个例子,我猜 HTTP 请求/响应周期对所有人来说都是通用的,因此所有 Web 应用程序框架,无论是否使用 Python,都会对用户/开发人员施加限制,他们必须实现他们的应用程序是这种风格的。哦,是的,该框架应该支持创建数据库支持的 Web 应用程序(我猜大多数都支持,但无论如何,我应该提到我已经尝试过 CherryPy(使用 SQLite))。还不足以决定是否是是否合适,也有一些我正在努力解决的错误,但无论如何我也在寻找其他建议,
感谢您的任何建议。
Which is the easiest Python web application framework to get started with, for general use?
Referring to easiest - I mean one which a short learning curve / time, at least in order to be able to use it for fairly simple apps. I have worked on non-trivial Ruby on Rails projects earlier, so it is not that I can't learn a more complex framework, it's just that for this particular app, I do not want to spend a lot of time learning the framework that I use - since this is more of an experimental app to test the idea - see below for more on that. If it turns out that the app idea is useful, I have no problem about later changing to a different framework and rewriting the entire app in that, after learning that framework properly.
I want to create a small web app - a personal productivity tool. Initially at least, it will be only for my personal use, though later I may consider opening it up to use by others, under whatever terms. Right now, I just want to prototype the idea and then use it some, myself, on a day-to-day basis, for a while, to get a feel for whether the app is actually useful or not for my productivity. By "general use" (in the title of this question), I mean that the suggested Python web app framework should not be specialized to any particular area, such as, say, Zope may (not sure) be more suited for creating CMS's (Content Management Systems). Also, the framework preferably should not put restrictions on what I can do, except for any restrictions that may be inherent in, or common to, all web app frameworks. (As an example of that last statement, the HTTP request/response cycle is, I guess, common to all, so all web app frameworks, whether in Python or not, put that restriction on the user/developer, that they have to implement their app in that style. Oh yes, and the framework should support creating database-backed web apps (which I guess most do, but mentioning it anyway). I should mention that I have tried out CherryPy (with SQLite) a little - not enough yet to decide whether it is suitable or not, also had some errors which I am working on resolving, but am anyway looking for other suggestions as well.
Thanks for any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我想您会发现 web2py 是最容易设置、学习和使用的之一(其中包括其主要目标)。它可以轻松完成简单的事情(甚至许多复杂的事情),但仍然具有强大的功能和灵活性。它受到 Rails 的启发,因此您对 Rails 的熟悉程度可能会让您更容易上手。如果您有任何疑问,这里有一个非常有用且响应迅速的邮件列表。
InfoWorld 最近有一篇评论:[概述 | web2py< /a>]。还有最近的演示。
I think you'll find web2py to be one of the easiest to set up, learn, and use (those are among its primary goals). It makes it easy to do simple things (and even many complex things), but still has a great deal of power and flexibility. It was inspired by Rails, so your familiarity with Rails may make it even easier to pick up. If you have any questions, there's a very helpful and responsive mailing list.
There was a recent review in InfoWorld: [Overview | web2py]. And a recent presentation.
Django 是迄今为止最受欢迎的。文档非常好,这将帮助您启动和运行。
Django is by far the most popular. Documentation is excellent, which will help you get up and running.
这里有一些“它适合我的大脑”Python Web 框架
这些都缺乏 ORM,但您可以自由使用您选择的一种(sqlalchemy、Storm)等。
Here are some "it fits in my brain" Python web frameworks
These all lack ORMs, but you are free to use one of your choice (sqlalchemy, Storm) etc.
web.py 可能是最简单的。
web.py is probably the simplest.
Plone 可能是最简单的,但 Django 是最受欢迎的。它也有非常详细的记录。
Plone is probably the simplest, but Django is the most popular. It's also extremely well documented.