For the a period of 18 months or so I slowly ported my chess by rss site (chrss) from Turbogears 1.0 to Django. When I started the port Django 1.1 was the latest version. I took so long to finish the port, that Django got to version 1 …
Articles tagged with Django
Django User Profiles and select_related optimisation
If you want to associate extra information with a user account in Django you need to create a separate "User Profile" model. To get the profile for a given User object one simply calls get_profile. This is a nice easy way of handling things and helps keep the User model …
Django Batch Select
So quite a while ago I wrote about avoiding the n+1 query problem with SQLObject. I've since been using Django a lot more. In particular at my day job I've been improving a Django site we've inherited. This particular site suffered from a few too many SQL queries and …
Django simple admin ImageField thumbnail
The Django admin site is one of the best features of Django. It really lets you just get on with building your app, without having to worry too much about how you'll administer your site.
The defaults are generally pretty good, but it's often the case that you'll want to …