Fixed a crash when activating a Django 1.4+ project.

This is a fix for issue #5.