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 there I got this:
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
But I have seen recursion errors in django.setup()
trying to run django.setup()
again, too.