ensure demo runs in modern installations (django 1.4+)

I was unable to use the demo out of the box with django 1.4 without these modifications. I hope these changes are useful for others.