I got a patch from the django-cms folks that moves template loading into their AppConfig.ready() routine, but the problem persists.
The last few lines of apps.populate are: self.models_ready = True for app_config in self.get_app_configs(): app_config.ready() self.ready = True At this point, django has the lock, app_config.ready() invokes the ready code for my apps, and I'm back where I started (nested call to apps.populate and deadlock). In db/models/base.py, in model_unpickle, I see this: if isinstance(model_id, tuple): if not apps.ready: apps.populate(settings.INSTALLED_APPS) model = apps.get_model(*model_id) Can that test instead be "if not apps.models_ready"? That would prevent the nested call and fix my problem. John -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/26b0709d-5298-4707-9a42-b4c4e4529e76%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.