views:

15069

answers:

16

Is anyone out there* using web2py?

Specifically:

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

    • by "out there" I mean at stackoverflow.
+4  A: 

There are some users listed here: http://mdp.cti.depaul.edu/who.

benefactual
I'm looking specifically for stackoverflow users.
Christopher Mahan
Ah, ok. My misinterpretation of "out there" :).
benefactual
+5  A: 

I'm starting to use it with Postgresql. But a long way off production... I've also played with Zope V2 and Ruby on Rails and really love the approach of web2py.

sparklewhiskers
+2  A: 

I am not using web2py. But I had a look at the source code and it's horrible for so many reasons. For one the database definitions as well as the views and models and I don't know what, are evaluated against a global dictionary of values. It feels like PHP in that regard (it's bypassing Python semantics in name behaviour) and is very inefficient and I could imagine that it's hard to maintain.

I have no idea where all that fuzz about web2py is coming from lately, but I really can't see a reason why anyone would want to use it.

What's wrong with Django or Pylons? What does web2py do that you can't do with Django in a few lines of code with a better performance, code that's easier to read and on an established platform where tons of developers will jump in and fix problems in no time if they appear. (Well, there are exceptions I must admit, but in general the developers fix problems quickly)

Armin Ronacher
The proliferation of "in web2py you do not need to import web2py stuff" as a "positive* point in its favour all over the official website is enough for me to never give it a serious look.
insin
It's a framework, not a library. Frameworks execute your code.
stesch
It seems, you are one of those people that don't understand "practicality beats purity", then.You go ahead and code things your way, i go ahead and do the same in a fraction of the time :)
buster
Its the difference between magic and explicitness. Django actually went through a repository branch called "magic removal". Neither architecture is completely superior to the other.
Unknown
you don't specify what is wrong with web2py. the source code argument is not any longer true (if it ever was).
Joschua
+8  A: 

I started using web2py about 6 month ago. I choose it, because I wanted to move from PHP to Python, to have a more object-oriented approch because of the language featrues of python.

The all-in-one approach of web2py is really amazing and makes the start very fast.

As a former symfony user I soon started to miss Components and Forms that aren't dependend on table structure.

Just with a simple registration form, I could not find a way to do the Form DRY. For me the real bugger was the form validation. I forgot the details, but I ended up with having form validation in the forms itself. Because some thing just didn't work else.

Also the naming concept of capitalised words with that lot of repeated chars is just not my thing.

dba.users.name.requires=IS_NOT_EMPTY()
dba.users.email.requires=[IS_EMAIL(), IS_NOT_IN_DB(dba,'users.email')]
dba.dogs.owner_id.requires=IS_IN_DB(dba,'users.id','users.name')
dba.dogs.name.requires=IS_NOT_EMPTY()
dba.dogs.type.requires=IS_IN_SET(['small','medium','large'])
dba.purchases.buyer_id.requires=IS_IN_DB(dba,'users.id','users.name')
dba.purchases.product_id.requires=IS_IN_DB(dba,'products.id','products.name')
dba.purchases.quantity.requires=IS_INT_IN_RANGE(0,10)

Sometimes the names have to be in quotes, sometimes not ... and if I looked at the examples or sites already made with web2py, I really didn't see that big step forward from using php.

I recommend you: Look if web2py works for you. It would be nice, because the community and especially massimo (the creator) are very helpful and nice.

Also you have a much quicker start, than with django, easier deployment and less hassle if you change your database models.

Andre Bossard
Coming from a Django, I can tell you that web2py does it this way because they actually let you use more than 1 database. The capitals are just a convention so you don't confuse the framework functions with your own.
Unknown
+51  A: 

Dear Christopher,

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, 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.

massimo
@massimo +1 "I do prefer to use pure Python in templates". Actually is why i use webpy for my project. Time to learn web2py too.
systempuntoout
@massimo: do you mind editing this answer to indicate when the info was updated (just to make sure i'm not reading outdated stuff)
Tshepang
I do not seem able to edit it but yes. this information is outdated. Please look for updated info in the book http://web2py.com/book. Here is an excellent web2py site in production http://tenthrow.com
mdipierro
+3  A: 

http://www.klasproducts.com is based on web2py and postgresql.

massimo
but it seems to be quite slow. Most request take more than 1s to load. Even a 404 takes 300ms... does it run in debug?
Andre Bossard
maybie you have a slow internet-connection, but for me it's very fast!
Joschua
+7  A: 

I am evaluating web frameworks for a long time now. I wrote my own (not open) frameworks in Perl and in PHP. Well, PHP has a builtin deadend and the whole infrastructure is still quite poor, but I did not want to go back to Perl, so I checked Python and the Python Web Frameworks like Django, Turbogears, Pylon and web2py. There are many things to think about, if you want to choose a codestack that is not your own and you will often scratch your head because there is still no "right way" to program things. However, web2py is my current favourite, because the author, despite beeing a "real programmer", keeps things easy! Just look at the comparison on web2py site - I was wondering why python frameworks like django or turbogears had to introduce such redundance and complicated syntax in their code - web2py shows, that it IS in fact possible to keep your syntax clean and easy!

@Armin: could you please specify you criticism? Where exactly do you see web2py "bypassing Python semantics"? I can not understand, what you mean. I must admit that I am not that deep into python right now, but I see no problem with the web2py code - in fact, I think it is brilliant and one of the best frameworks available today.

Snaky Love
+1  A: 

Actually it's using MySQL, but it could switch to postgresql at a moments notice as web2py is so diverse :)

+2  A: 

I vote for Web2py. I only have time to develop small but useful stuff for my own use.

Hopefully next month I will have an oppty to create an app that is perfect for Web2py and run on Google app engine.

Web2py = breath of fresh air!

breath of fresh air over django?
rogerdpack
+6  A: 

I'm using web2py for a small web app... it's running the HITs on a mechanical turk project, and giving me an interface to control and visualize them. I started on google app engine, but then got sick of the little annoyances of not having direct database access and having to wait forever each time I want to upload my code, and moved to a local server with postgres. GAE makes most things harder in order to make a few scaling things easier... stay away from it unless you really need their scaling help.

I like web2py a lot. Compared to django and ror, it's WAY easier to learn and get going. Everything is simple. You get stuff done fast. Mossimo is everywhere solving your problems (even on this board haha).

toomim
+1  A: 

I am using web2py in production with postgres on webfaction, and also on the GAE.

Plumo
+2  A: 

I have been evaluating web frameworks for sometime now. I prefer web2py because it's easy to follow, compact yet powerful.

A: 

I like it because it is so tiny that I can easily distribute with my application.

Zhe
A: 

web2py is the ms access of web application frameworks.

daniel isoje
Is that a comment or an insult or praise?
Amala
+1  A: 

We started to use Web2py 7 mouth ago. We already have one application in produccion in El Prado (National Museum in Spain). We developed a app to check and automate all the systems, to make servers statistics, access statistics, etc.

Jose de Soto Garcia
+2  A: 

As Massimo points out above, the team at tenthrow uses web2py for tenthrow.com

We did most of our development work during 2009. Our stack uses cherokee, web2py, postgresql, and amazon s3. We had done many python web implementations prior to this on a variety of frameworks and backends. To say that we simply could not have done tenthrow so quickly and easily without web2py is an understatement. It's the best kept secret in web development.

David Watson