任何人在那里使用web2py? [英] Anyone out there using web2py?

查看:114
本文介绍了任何人在那里使用web2py?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人使用 web2py



特别是:


  • 在制作中

  • 使用什么数据库?

  • 使用Google Application Engine?




    • 我的意思是在计算器上。


解决方案

欢迎您就 google group 。你会发现有超过500名用户,其中一些是开发公司为他们的客户构建项目。



我的印象是,他们大多使用postgresql(这就是我所做的)以及其他一些人使用Google App Engine。事实上,web2py是唯一允许你编写代码的框架,相同的代码可以在GAE,SQLite,MySQL,PostgreSQL,Oracle,MSSQL和FireBird上运行(受GAE的限制)。

您可以在GAE的这里找到Reddish(reddit clone) / a>



此处您可以找到一些制作应用程序的链接。有些在GAE上运行。

@Armin:



Django或Pylons没有错。他们是优秀的框架。在开发web2py之前,我已经使用过它们。您可以使用web2py执行的一些操作,但您无法使用它们。例如:


  • web2py使用Postgresql执行分布式事务,Armin请求使用此功能。

  • Django ORM不会原生执行迁移(请参阅),web2py的确如此。

  • Django ORM不允许部分总和(count(field))和web2py的group by。

  • web2py可以同时连接到多个数据库, Django和主塔需要被黑客攻破,并且 web2py在应用程序中有一个配置文件,而不是在项目级别,像他们一样。

  • webp2y为管理员记录所有追踪服务器端,Django和Pylons不记录。 b $ b
  • web2py程序通常在GAE上运行,未经修改。

  • web2py内置了xmlrpc网络服务。

  • web2py附带jQuery。



web2py更好(使用更一致的API)并且更快(例如处理模板和生成SQL)。 web2py也非常紧凑(所有模块都适用于265K字节),因此比那些竞争的项目更容易维护。

您只需要学习Python和81新的函数/类(其中50个与相应的HTML标记具有相同的名称和属性, BR DIV SPAN 等等,19是验证器, IS_IN_SET IS_INT_IN_RANGE ,等等)。

无论如何,最重要的问题是web2py比Django,Pylons,PHP和Rails更容易。



您还会注意到web2py托管在Google Code和Launchpad上,并且没有打开的票据。所有过去的问题已在24小时内解决。

您也可以在谷歌邮件列表中查看所有线程(今日10056条消息)我或其他开发人员在24小时内。



您可以在亚马逊的web2py上找到一本书。



Armin,我知道你是Jinja的开发者。我喜欢Jinja,但有不同的设计理念。 Django和Jinja都定义了自己的模板语言(特别是Jinja具有优秀的文档),但我更喜欢在模板中使用纯Python,这样我的用户根本不需要学习模板语言。我很清楚每种方法的优缺点。让用户决定他们喜欢什么。不需要互相批评。

@Andre:db.table.field引用字段对象。 'table.field'是一个字段名称。因为str(db.table.field)是'table.field',所以当需要字段名称时,您总是可以传递一个字段对象。唯一需要使用字符串而不是对象的情况是,当您需要按名称引用尚未定义的字段时......或许我们应该将此讨论移至适当的位置。 ; - )



我希望你会决定给web2py一个尝试,无论你喜不喜欢,我都很乐意听取你的意见。

Is anyone out there* using web2py?

Specifically:

  • In production?
  • With what database?
  • With Google Application Engine?

    • by "out there" I mean at stackoverflow.

解决方案

You are welcome to ask the same question on the google group. You will find more than 500 users there and some of them are development companies building projects for their clients.

My impression is that most of them use postgresql (that's what I do to) and some others use the Google App Engine. In fact web2py is the only framework that allows you to write code once and the same code will run on GAE, SQLite, MySQL, PostgreSQL, Oracle, MSSQL and FireBird (with the limitations imposed by GAE).

You can find the Reddish (reddit clone) appliance with source code for GAE here

Here you can find links to some productions app. Some are running on GAE.

@Armin:

Nothing is wrong with Django or Pylons. They are excellent frameworks. I have used them before developing web2py. There are a few things you can do with web2py that you cannot with them. For example:

  • web2py does distributed transactions with Postgresql, Armin requested this feature.
  • the Django ORM does not do migrations natively (see South), web2py does.
  • the Django ORM does not allow partial sums (count(field)) and group by, web2py does.
  • web2py can connect to multiple databases at once, Django and Pylons need to be hacked to do that, and
  • web2py has a configuration file at the app, not at the project level, like them.
  • webp2y logs all tracebacks server side for the administrator, Django and Pylons do not.
  • web2py programs often run on GAE unmodified.
  • web2py has built-in xmlrpc web services.
  • web2py comes with jQuery.

There are many things that web2py does better (using a more coherent API) and faster (processing templates and generating SQL for example). web2py is also very compact (all modules fit in 265K bytes) and therefore it is much easier to maintain than those competing projects.

You only have to learn Python and 81 new function/classes (50 of which have the same names and attributes as corresponding HTML tags, BR, DIV, SPAN, etc. and 19 are validators, IS_IN_SET, IS_INT_IN_RANGE, etc.).

Anyway, the most important issue is that web2py is easier than Django, Pylons, PHP and Rails.

You will also notice that web2py is hosted on both Google Code and Launchpad and there are not open tickets. All past issues have been resolved in less than 24 hours.

You can also check on the google mailing list that all threads (10056 messages today) ended up with an answer from me or one of the other developers within 24 hours.

You can find a book on web2py on Amazon.

Armin, I know you are the developer of Jinja. I like Jinja but have different design philosophies. Both Django and Jinja define their own template languages (and Jinja in particular has excellent documentation) but I do prefer to use pure Python in templates so that my users do no need to learn a template language at all. I am well aware of the pros and cons of each approach. Let's the users decide what they prefer. No need to criticize each other.

@Andre: db.table.field refers to the field object. 'table.field' is a field name. You can always pass a field object when a field name is required because str(db.table.field) is 'table.field'. The only case you are required to use a string instead of an object is when you need to reference by name a field that has not already been defined... perhaps we should move this discussion to the proper place. ;-)

I hope you will decide to give web2py a try and, whether you like it or not, I would love to hear your opinion.

这篇关于任何人在那里使用web2py?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆