mission_control.apps¶
Mission Control apps.
Classes
AppConfig (app_name, app_module) |
Class representing a Django application and its configuration. |
MissionControlConfig (app_name, app_module) |
Configuration for the Mission Control app. |
-
class
mission_control.apps.
MissionControlConfig
(app_name, app_module)¶ Bases:
django.apps.config.AppConfig
Configuration for the Mission Control app.
-
_path_from_module
(module)¶ Attempt to determine app’s filesystem path from its module.
-
create
(entry)¶ Factory that creates an app config from an entry in INSTALLED_APPS.
-
get_model
(model_name, require_ready=True)¶ Returns the model with the given case-insensitive model_name.
Raises LookupError if no model exists with this name.
-
get_models
(include_auto_created=False, include_swapped=False)¶ Returns an iterable of models.
By default, the following models aren’t included:
- auto-created models for many-to-many relations without an explicit intermediate table,
- models that have been swapped out.
Set the corresponding keyword argument to True to include such models. Keyword arguments aren’t documented; they’re a private API.
-
ready
()¶ Override this method in subclasses to run code when Django starts.
-