Thursday, August 19th, 2010

Adventures in django and python

This post is from my old blog. The exact publishing date has been preserved for archival reasons.

I just recently downloaded and tried out Django yesterday and am already rather impressed. This is one powerful Python web framework. I will be in the process of converting my current mod_python web applications to this new framework. One reason for this would be my most recent issue with mod_python and session handling. mod_python completely broke and stopped handling sessions on my local laptop Apache server.

Regardless, after using Django and going through it's tutorial, I found it to be very powerful and better than mod_python in many ways. It can be used as a mod_python handler, run as a CGI, or run through a WSGI interface. The latter is my preferred method. I successfully configured nginx with a stand-alone WSGI server called uWSGI and configured apache for WSGI to work with Django.

I really enjoy how easy it is to develop with Django, as it has an embedded development server. This makes developing and debugging an application much easier. However, I do miss the PSP templates which mod_python used. I do not care very much for the Smarty template engine which django follows.

Besides the template engine, the rest of the framework is very promising. The community behind it is much larger than the community behind mod_python. It is also one of the top rated Python web frameworks according to's wiki on web frameworks.

All in all, as long as I can code my web applications in Python, I am happy!

Looking back...

Since I was coming from the world of PHP, the new way to write templates was little overwhelming. Once I began using the Django template system and learning how to customize it and fully use it's awesome power, I now prefer it over anything else.

About Me

My Photo
Names Kevin, hugely into UNIX technologies, not just Linux. I've dabbled with the demons, played with the Sun, and now with the Penguins.

Kevin Veroneau Consulting Services
Do you require the services of a Django contractor? Do you need both a website and hosting services? Perhaps I can help.

This Month

If you like what you read, please consider donating to help with hosting costs, and to fund future books to review.

Python Powered | © 2012-2019 Kevin Veroneau