Alex Rivera | Logout

Pros and Cons of different approaches to web programming in Python

Asked 2008-09-04T13:00:13.960
24

I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.

It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically do all the job themselves. And a huge lot of stuff in between, like web.py, Pyroxide and Django.

  • What are the pros and cons of the frameworks or approaches that you've worked on?
  • What trade-offs are there?
  • For what kind of projects they do well and for what they don't?

Edit: I haven't got much experience with web programing yet.

I would like to avoid the basic and tedious things like parsing the URL for parameters, etc.
On the other hand, while the video of blog created in 15 minutes with Ruby on Rails left me impressed, I realized that there were hundreds of things hidden from me - which is cool if you need to write a working webapp in no time, but not that great for really understanding the magic - and that's what I seek now.

Edit
Report

1 Answer

7

If you decide to go with a framework that is WSGI-based (for instance TurboGears), I would recommend you go through the excellent article Another Do-It-Yourself Framework by Ian Bicking.

In the article, he builds a simple web application framework from scratch.

Also, check out the video Creating a web framework with WSGI by Kevin Dangoor. Dangoor is the founder of the TurboGears project.

answered 2008-09-04T13:24:55.073

Your Answer