MCPcopy
hub / github.com/django/django / handle

Method handle

django/core/management/base.py:647–661  ·  view source on GitHub ↗
(self, *app_labels, **options)

Source from the content-addressed store, hash-verified

645 )
646
647 def handle(self, *app_labels, **options):
648 from django.apps import apps
649
650 try:
651 app_configs = [apps.get_app_config(app_label) for app_label in app_labels]
652 except (LookupError, ImportError) as e:
653 raise CommandError(
654 "%s. Are you sure your INSTALLED_APPS setting is correct?" % e
655 )
656 output = []
657 for app_config in app_configs:
658 app_output = self.handle_app_config(app_config, **options)
659 if app_output:
660 output.append(app_output)
661 return "\n".join(output)
662
663 def handle_app_config(self, app_config, **options):
664 """

Callers

nothing calls this directly

Calls 5

handle_app_configMethod · 0.95
CommandErrorClass · 0.85
get_app_configMethod · 0.80
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected