Django 1.7 throws django.core.exceptions.AppRegistryNotReady: Models aren’t loaded yet

Running these commands solved my problem (credit to this answer):

import django
django.setup()

However I’m not sure why I need this. Comments would be appreciated.

Leave a Comment