Fixed a crash when activating a Django 1.4+ project.