Introduce Django 1.4 compatibility

Fixes #88. The tests aren't being executed at all but the example app works.