MCPcopy
hub / github.com/django/django / import_models

Method import_models

django/apps/config.py:262–269  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260 yield model
261
262 def import_models(self):
263 # Dictionary of models for this app, primarily maintained in the
264 # 'all_models' attribute of the Apps this AppConfig is attached to.
265 self.models = self.apps.all_models[self.label]
266
267 if module_has_submodule(self.module, MODELS_MODULE_NAME):
268 models_module_name = "%s.%s" % (self.name, MODELS_MODULE_NAME)
269 self.models_module = import_module(models_module_name)
270
271 def ready(self):
272 """

Callers 2

populateMethod · 0.45
get_modelMethod · 0.45

Calls 1

module_has_submoduleFunction · 0.90

Tested by

no test coverage detected