PDA

View Full Version : Python web programming



hoboy
February 28th, 2010, 11:46 AM
What is the best web programing framework for python.
I want to make some web pages in python, and need a davice to chose a web technology for python

CptPicard
February 28th, 2010, 01:13 PM
Django.

cb951303
February 28th, 2010, 03:37 PM
it depends.

Django: easy to learn, all-in-one framework

Pylons: modular, with ability to choose your own ORM or template engine

Web.py: lightweight

Turbogears 2: built on pylons. as it's noted on their website, it's a megaframework. lots of features (Sourceforge decided to go with Turbogears)

Web2Py: never tried this one. it looks ok to me but a lot of people thinks its badly designed. but be warned it might be completely wrong.

I personally love Django. It's so easy to start with and has everything one needs out of the box. My only wish would be an official NoSQL ODM but AFAIK none of the Python web frameworks officially support it yet.

EDIT: Oh by the way Django has a very nice e-book here: http://www.djangobook.com/

DaithiF
February 28th, 2010, 04:00 PM
Django +1

n0dix
February 28th, 2010, 04:50 PM
Django +1

+1 Django.

mdipierro
February 28th, 2010, 05:35 PM
web2py is designed differently than other Python frameworks since it gives more importance to "do not repeat yourself" than the Python motto "explicit is better than implicit". For example you do not need to know in which module the framework keywords are defined, they are already imported for you in the name-space (like in Rail, it is the only Python framework to do so). It also has a fully web based IDE (it is the only Python framework to that too) and the only database abstraction layer that works on both relational databases and the Google App Engine. Some people love it because of its ease of use, other people hate it for the very same reason.;)

cb951303
February 28th, 2010, 06:09 PM
mdipierro, I think you have replied every single web2py thread on the internet :) how do you do that?

btw, do you plan implementing any NoSQL ODM in web2py?

mdipierro
February 28th, 2010, 10:21 PM
You may be right. Unfortunately I do not sleep much :sad:
The web2py Database Abstraction Layer already supports GAE which is a NoDB. We are about to release a complete re factoring of DAL (it is already in trunk but needs a little more work) that is 100% backward compatible but has a more modular structure. I allows to built "adaptors" for both DBs and NoDBs. We hope to have support for MongoDB and CouchDB in 2 months.

cb951303
February 28th, 2010, 11:05 PM
You may be right. Unfortunately I do not sleep much :sad:
The web2py Database Abstraction Layer already supports GAE which is a NoDB. We are about to release a complete re factoring of DAL (it is already in trunk but needs a little more work) that is 100% backward compatible but has a more modular structure. I allows to built "adaptors" for both DBs and NoDBs. We hope to have support for MongoDB and CouchDB in 2 months.

great news, I was hoping to try MongoDB without messing with mongokit and alikes.

WillyTheDisk
March 1st, 2010, 12:32 AM
web2py is the most productive python framework I've ever used.