MCPcopy
hub / github.com/django/django / check_models_ready

Method check_models_ready

django/apps/registry.py:140–143  ·  view source on GitHub ↗

Raise an exception if all models haven't been imported yet.

(self)

Source from the content-addressed store, hash-verified

138 raise AppRegistryNotReady("Apps aren't loaded yet.")
139
140 def check_models_ready(self):
141 """Raise an exception if all models haven't been imported yet."""
142 if not self.models_ready:
143 raise AppRegistryNotReady("Models aren't loaded yet.")
144
145 def get_app_configs(self):
146 """Import applications and return an iterable of app configs."""

Callers 6

get_modelsMethod · 0.95
get_modelMethod · 0.95
get_namespaceMethod · 0.80
get_modelMethod · 0.80
get_modelsMethod · 0.80
related_modelMethod · 0.80

Calls 1

AppRegistryNotReadyClass · 0.90

Tested by

no test coverage detected