In Django 1.7, this code caused errors in django.setup() :
class MyModel(models.Model): special_foo=Foo.objects.filter(name__contains='special')
In my case, I got this:
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
But I saw recursion errors in django.setup() trying again to start django.setup() .
source share