Category Archives: Django

Post-transaction events in Django

So, at work I’m using Django quite a bit, and I ran into a problem where I need the database transaction to be committed, and then I need to trigger additional server-side code that will act on that data. Putting all of this into the view function with a manually managed transaction sucks, far too […]

Where Django signals aren’t enough

So, I’ve been trying to solve an issue in some Django code at work where Django’s insistence on cascading deletions across foreign keys (not necessarily a bad thing) has resulted in unintended deletion. I have a model, Client. Client has a ForeignKey to Zone. When Zone is deleted I would like to intercept and move […]

Where migration frameworks fail

At work I am using Django for a web-based management interface, using PostgreSQL as the database back-end. Django does not yet come with a migration framework to evolve the database schema, so I wrote a really simple one, based on Rails migrations. The system is simple. You put fragments of SQL code in separate text […]

Django 1.0

There has been much complaining and many excuses for why Django has not been following the “release early, release often” philosophy of most open-source software. This has left many of us in the industry stuck at release 0.96, with all of our inquiries regarding bugs and how-tos being met with responses like, “please don’t use […]

Patching Django

So, my current work project involves porting a web management UI for a telephony platform to Django, and I’ve had to adapt use of Django considerably for our legacy requirements. It’s been relatively easy to do so, but as usual with software, it is not without bugs. The Django session middleware makes of of the […]

Processing a table of forms in Django

I’m using Django for my current web interface work at Mitel, and I’m constantly finding that I have to push the limit of my knowledge in Django to make it work with many of the requirements that I have. One example is instead of displaying a single form for an object in the database, on […]

Django Book PDF

While Django users must certainly be happy that there is a free Django book online, it does not include a downloadable copy. Probably because it’s also gone to print. Luckily, Tane over at Digital Spaghetti has compiled a pdf version that is downloadable. I think the book will sell fine though. I’ve already ordered a […]