Fixed a crash when activating a Django 1.4+ project. #5

This is a fix for issue #5.