使用 Pinax 的最大好处是什么?
我最近发现 Pinax 它似乎是一个 django 堆栈,其中添加了最常用的应用程序,非常容易并加快开发速度。
我以前从未使用过或听说过 Pinax,想知道您是否有关于它的反馈。我喜欢 Django,并且想了解 Pinax 对 Web 开发的各个部分提供哪些帮助以及使用哪些工具。
I recently discovered Pinax that appear to be an django stack with added most-used apps so easy and speed up development.
I never used or heard of Pinax before and like to know if you have feedback about it. I love Django and would like to understand what are to parts of web dev Pinax helps with and using what tools.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Pinax 是 Django 应用程序的集合,已通过一些代码和示例模板为您粘合在一起。
它不是即插即用,因为 Django 不是 CMS,应用程序也不是插件,但您可以让您的网站运行得非常快。您只需删除不需要的内容,添加您想从网络上使用的其他 Django 应用程序,并编写以前没有人编写过的内容,这将使您的网站变得特别。
我在 Pinax 的一个网站上工作,不得不删除很多东西,以使其更简单,但这仍然是完全值得的。
这是一个很好的例子(可能是最好的例子),展示了 Django 应用程序如何可重用以及如何使它们最好地协同工作。
具体的例子,给你:
Pinax 附带在线社区的所有“用户”部分:登录、注册、OpenID、电子邮件确认。这是您不必编写的示例。
Pinax is a collection of Django-Apps that have already been glued together for you with some code and sample templates.
It's not plug&play, because Django is not a CMS and Apps are not plugins, but you can get your site going really fast. You just have to remove the stuff you don't need, add other Django Apps that you'd like to use from around the web and write the stuff that nobody has written before and that makes your site special.
I worked on a site with Pinax and had to remove quite a lot, to make it more simple, but it was still totally worth it.
It's a great example (probably the best) of how Django Apps are reusable and how to make them work together best.
Concrete example, here you go:
Pinax comes with all the "User" Part of an online community: login, registration, OpenID, E-Mail-Confirmation. That's an example of what you don't have to write.
我即将开始使用 Pinax,我很高兴我发现了它。
我们的网站待办事项列表包含很多内容,例如通过电子邮件验证进行的新用户注册、讨论以及混合了网站范围内的更新和针对该用户的更新的用户新闻源。我们可以对所有这些进行编码,但这需要一段时间。真令人畏惧。
幸运的是,我发现了 Pinax。我只需要学习 Pinax 结构并编写一些胶水,而不是编写所有这些功能。我敢打赌,这将花费编写我们需要的功能所需时间的 1/50。
I'm about to start using Pinax, and I'm glad I discovered it.
Our todo list for the site has a lot of things on it, such as new user sign-up with email verification, discussions, and a news feed for users that blends site-wide updates and updates for that user. We can code all of this up, but it'll take a while. It'd daunting.
Luckily, I discovered Pinax. Instead of coding all those features I'll only need to learn the Pinax structure and write some glue. I bet it will take 1/50th of the time that would have been required to write the features we need.
正如另外两篇文章所说,它附带了许多预打包的应用程序,可以处理现代网站中的常见任务。以下是打包的外部应用程序的列表: https://github .com/pinax/pinax/blob/master/requirements/pinax.txt
它还为您提供了可供启动的项目模板,您可以在此处查看:https://github.com/pinax/pinax/tree/master/pinax/projects/
这些项目的工作默认设置位于以便您可以运行syncdb,然后运行server来立即开始,这与默认的Django不同。它的设计还鼓励您以更可重用的方式编写自己的应用程序。正如他们所说,“通过集成大量可重用的 Django 应用程序来处理许多网站的共同点,它可以让您专注于使您的网站与众不同的地方。”
它确实有自己的一个小学习曲线,但我个人对它非常满意,并且通过使用 Pinax 学到了更多关于 Django(以及 git 和 virtualenv)的知识。
As the two other posts said, it comes with a lot of pre-packaged apps that take care of common tasks in modern websites. Here's a list of the external apps that come packaged: https://github.com/pinax/pinax/blob/master/requirements/pinax.txt
It also gives you project templates to start from, which you can see here: https://github.com/pinax/pinax/tree/master/pinax/projects/
The projects have working default settings in place so that you can run syncdb then runserver to get going immediately, unlike default Django. Its design also encourages you to write your own apps in such a way that they are more reusable. As they put it, "By integrating numerous reusable Django apps to take care of the things that many sites have in common, it lets you focus on what makes your site different."
It does have a small learning curve of its own but I've personally been very happy with it and learned a lot more about Django (and git and virtualenv) by using Pinax.