registry
django_spire.core.management.commands.spire_startapp_pkg.registry
AppRegistry
Manages Django app registration information.
This class provides methods to query which apps are installed in the Django project and validate app component hierarchies.
get_installed_apps
Gets a list of all installed app names.
Returns:
Source code in django_spire/core/management/commands/spire_startapp_pkg/registry.py
get_missing_components
Identifies which app components in a path are not registered.
For a path like ['app', 'human_resource', 'employee'], this checks if 'app', 'app.human_resource', and 'app.human_resource.employee' are registered, and returns those that are missing.
Parameters:
Returns:
Source code in django_spire/core/management/commands/spire_startapp_pkg/registry.py
get_valid_root_apps
Gets all valid root app names from INSTALLED_APPS.
Returns root-level apps (first component before a dot) that can be used as parent apps, excluding Django's built-in apps.
Returns: