我应该使用 Pylons 还是 Pyramid?
我本来打算从 Django 迁移到 Pylons,但后来我遇到了 Pyramid。
塔架和金字塔有什么区别?
我在 PylonsBook 中阅读了一些文本,其中当前涵盖 Pylons 0.9.7,并且想知道它是否是 Pylons 和 Pyramid 的开始。
I was planning to move from Django to Pylons, but then I bumped into Pyramid.
What are the differences between Pylons and Pyramid?
I read some text in PylonsBook, which currently covers Pylons 0.9.7, and wonder if it is a to start for Pylons and Pyramid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Pylons 并未被“取消”,它将继续接收更新。也就是说,“未来”本身就在金字塔中。在邮件列表上,它被称为 Pylons 2.0。它经过了全面的测试,并且比 Pylons 1.0 有更好的记录,因此如果您是新手,不妨立即加入。
Pyramid 本质上是 Pylons 和 Repoze.bfg 的合并。请访问 pylons-devel 电子邮件列表了解更多相关信息。
特别是在这封介绍性电子邮件中。如果您有更深层次的问题,请关注 #pylons、#pyramid 或 #repoze irc (freenode) 频道。
Pylons isn't being "cancelled", and it will continue to receive updates. That said, the "future" per se is in Pyramid. On the mailing list is has been referred to as Pylons 2.0. It is fully tested and better documented than Pylons 1.0, so you might as well jump aboard if you're fresh.
Pyramid is essentially the merger of Pylons and Repoze.bfg. Read more about this on the pylons-devel email list.
Especially, in this introductory email. If you have deeper questions, hang out in the #pylons, #pyramid, or #repoze irc (freenode) channels.
您很可能想选择金字塔。它可能看起来是一个更复杂的系统,但实际上它更干净且非常直观。此外,该项目的文档非常棒,在我看来,甚至比以其文档而闻名的 django 项目还要好。
然而,这并不意味着它“像 django”。它仍然是轻耦合的,您可以使用您喜欢的任何模板、数据库、表单、会话管理系统等。
值得注意的是,Pyramid 是一个基础框架,而 Pylons 是构建在其之上的。
You want to go with Pyramid most probably. It may seem like it's a more complicated system, but it's actually much cleaner and very intuitive. Furthermore, the documentation for the project is simply awesome and in my opinion, even better then the django project which is well known for it's documentation.
That does not make it "like django" however. It is still lightly coupled and you can use whatever template, database, form, session management system, etc that you like.
It's worth noting that Pyramid is a base framework and Pylons is being built on top of it.
如果您计划开始新项目、迁移或只是学习框架,我建议使用 Pyramid。
塔将阻止它的发展。
同时 Pyramid 是 Pylons 的延续。因此,它的代码是稳定的。它包含 Pylons 的大部分功能,并添加了一些新的有用功能。
If you plan to start new project, migrate or just to learn framework I recommend to use Pyramid.
Pylons will stop it's development.
Meanwhile Pyramid is a continuation of Pylons. Thus, it's code is stable. It includes most features from Pylons, adds some new usefull features.