def check_models_ready(self):
        if self.models is None:
            raise AppRegistryNotReady(
                "Models for app '%s' haven't been imported yet." % self.label)
Raises an exception if models haven't been imported yet.
dataset/ETHPy150Open django/django/django/apps/config.py/AppConfig.check_models_ready