If you follow this blog at all, you know that I’m a PHP programmer. Specifically, I like to work the LAMP stack. Lately though I’ve been getting the itch to grow my Python skills and learn a new web framework. After some searching about on the internet, I came up with two Python web frameworks that look promising: Django and Pylons.
Django and Pylons are both Python web frameworks that encourage rapid development of web sites using the Model-View-Controller design pattern. They both are similar, but also have enough differences to warrant some discussion before choosing one over the other.
From my research and experience, Django is good because it’s easy. It’s easy to set up a site and the administrative interface is built up for you. The only issues people have is that it doesn’t allow a great deal of customization, and sometimes Django hides what is going on from you. To some people this is desirable, to others it isn’t.
People seem to like Pylons because it’s extremely flexible. For your models you can use SQL Alchemy or some other ORM, while for your template engine you can use Mako or any other kind that you’d like.
Mainly because I like to have flexibility, I think I’ll start out with Pylons. If you’re interested in learning more about the differences between the two frameworks check out this and this.
One reply on “Choosing a Python Web Framework”
Hello Jack,
I realize I am for a little bit late with this comment. Nevertheless, I would like to express my opinion on your thoughts:
I personally am not a PHP programmer, but few colleagues of mine are. There was a time we needed to decide which python framework to use in our company. Here is our study:
http://goodspring-tech.com/index.php?option=com_content&view=article&id=87%3Aour-choice-is-web2py-python-framework&catid=53%3Atechnology&Itemid=152&lang=en
We believe that if a PHP programmer needs to migrate to a Python framework –> the easiest and most efficient way would be web2py.
Cheers,
TTT