Using Jinja2 templates in Django

In my previous post Things I “hate” about Python and Django, I said that one of the things I “hate” about Django is its template language. While very easy to use and pretty extensible, it’s missing some important (and basic, to be honest) features...

read more

Things I “hate” about Python and Django

I have been a PHP programmer for the last 9 years, and only in September of 2009 I switched to Python and the Django framework. While I really love the Python language and the Django framework (especially compared to something like the Zend PHP...

read more

Using the Google Visualization API in Django

In a project I am working on, I need to show a lot of graphs and charts. Together with the client we chose to use the Visualization API by Google, which provides a Python library, offers many different kinds of charts and very important: the data is...

read more

How to dynamically add fields to a Django model

For a project I needed to create a Django model from a list of fields that were defined somewhere else. It took me hours to get this to work, so to save you the time, here is the solution: fields = ['field_a', 'field_b', 'field_c'] # the base model...

read more

Switching from MobileMe & my short adventure with Google App Engine

I can’t remember how long ago it’s been that I’ve used a free email address like hotmail, yahoo or gmail. For more than 8 years I’ve used my own domain names to host my email. In the very beginning on my own little server at home, later on a “real”...

read more