Friday, February 24th, 2012

Django spoils me too much

Not sure if you heard this before, but Django seriously spoils me. When I use Django I feel like a king, complete with subjects to do my bidding, and a nice plush throne. It comes with so many batteries included, and the plug-able apps which I have found left me happy to be a web programmer. Django definitely makes it easy to deploy websites from small to large in a very swift amount of time. Once the website is all up and running, adding new functionality is as easy as pie(and eating it too). The way the code is organized in a Django project, makes it easy to find what your looking to modify and change it within a matter of minutes. There's not needing to look through 1,000 page manuals to find out how to add an extra database column or a new form element to allow a user to do more. There are so many web projects out there in the wild, that even if I attempt to look at their source code to make a simple modification, I fall flat right on my face.

It's really hard to look at another framework after I have been using Django. I have been recently trying to learn what Bottle has to offer. Bottle seems like a wonderful micro-framework, and I learned it very fast, as it doesn't come with as many classes and methods as Django does. Bottle is right to the point web programming. I am in the process of going through the various Python micro-frameworks to see what they are all about and what I may use one for.

Currently, I am in the process of planning a very ambitious project. At first I was thinking of making it using Django, but this project doesn't require all of Django's batteries included, and I feel that using Django would be overkill. This project is rather large, and I feel that I need to optimize every component to built it right. This is why I am going through the various micro-frameworks to see which one will fit my needs the best.

The only problem is that, I will miss some of Django's very powerful plug-able apps, namely Dajax. Dajax and Dajaxice are very well made Ajax frameworks for Django. They make programming an Ajax-based project very easy, and I feel like an Ajax god when using it, not just a mere mortal king. This package has it all, and integration with existing JavaScript frameworks is easy. I was thinking of porting it over to the micro-framework I was planning on using, in order to keep my same method of programming Ajax in tact.

I believe it is Django's tightly integrated components that make it work so well. They did a awesome job with this, and I congratulate them.

Once I go through each micro-framework that I plan on testing, I will write up a small review on each one and my opinions on them. The review section is basically done, I only need to develop the review template a little further, but with the help of Bootstrap, from Twitter, I don't really see adding these components a problem anymore. Once the reviews are completed, I will choose the micro-framework on the best scored one.

Which framework do you normally use for very custom websites, which are not your everyday run of the mill ones?

Comment #1: Posted 2 years, 10 months ago by Joe

I started a similar exercise (see, for example, http://pyrseas.wordpress.com/2011/12/29/python-web-frameworks-development-server/ ) but not limited to micro-frameworks and my goals are different than yours. I have used CherryPy quite a bit and Werkzeug to a lesser extent. I first tried out Django, TurboGears and Pylons, but I'm more of a minimalist.

Python Powered | © 2012-2014 Kevin Veroneau