Posts for December 2007

Dec 28

'unicode' object has no attribute 'get_sql'

I keep getting this error, and it always takes a moment of head-scratching to figure out what's wrong. Here's what's wrong, to save you some hair.

Dec 28

Adapters in Django and the Revenge of Zope

Using Zope 3's component architecture can significantly reduce dependencies between applications within a Django project. Why stand on the shoulders of one giant, when you can stand on the shoulders of two?

Dec 16

GET and POST handling in Django views

Django view functions often feature an initial stanza near the start in order to handle POST data differently. You often end up with quite a lot of logic in one method. Here I describe a cleaner way, using a decorated view class to replace the single function.

Dec 11

TFS, Force Get, and Get Specific Version

When TFS tells you something, you want to think twice about whether you believe it.

Dec 09

Fez Consulting web site live

The Fez Consulting web site has gone live - another dirt simple site built on Django.

Dec 04

TextMate's Open Recent

Sometimes it's the little things that make you say "wow".

Dec 04

Programming with Passion

Software engineering shouldn't be 9 to 5 job. It should be a source of constant intellectual stimulation, in an environment of constant change. However, experience tells me that there are plenty of people for whom programming is the process by which a specification document is turned into a paycheck.