Deleting anonymous users' baskets when their sessions expire

How do you delete baskets belonging to anonymous users when their sessions expires? It wasn't quite as simple as I thought.

read more

Adding custom actions to the Django Admin

Let's add custom actions to Django's admin site - but to the change form, not the list view.

read more

Review roundup: the search for the perfect Python IDE (for Django)

When I first started working with Python in September 2009, I needed a good IDE. I quickly settled for Netbeans and I’ve been using it ever since, even though there are some things that really irritate me. But at least it works, and fits well in my...

read more

Django-CMS backend usability

Yesterday I wrote an article comparing Django-CMS, FeinCMS and Mezzanine. One of the conclusions was that while Django-CMS is the best CMS on paper, I don’t like its backend interface that much. I thought it would be a good idea to properly explain...

read more

Django-CMS vs. FeinCMS vs. Mezzanine

When you need a content management system for Django, there is enough choice. Maybe even too much: the very helpful site djangopackages.com lists 13. Some are mature and very feature-complete, while others are barely more than a basic model and a...

read more

Looking for a Django CMS which suits my needs

I need to build a content-based website for a client, in Django. Well, that’s easy right? Pick one of the content management systems available, build some templates and css, and ta-da, done. Since I have used Django-CMS in previous projects, that...

read more

Serving 5000 pages per second with Django

Okay, this website wasn’t slow and will never need to serve 5000 pages per second, but hey, it’s possible now! Oh right, and it was fun to play around with a nice caching system. Almost everything on mixedCase.nl needs to come from the database: the...

read more

Django 1.2, a great release

I’ve been playing with the Beta release of Django 1.2 (get it here) and I love many of the new improvements. I’d like to list the best and biggest new features, and also some problems I encountered while using it. Smarter if tag I was already using...

read more

Making Django suck less

Or, “How to make Django even better then it already is”. Because it really isn’t as bad as the title implies :) 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....

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