Class AppConfig
Class representing a Django application and its configuration.
Declaration
class AppConfig
source linkDocumentation
Methods
▶ def __init__(self, app_name, app_module) Overrides
This method is overriden in:
▶ def get_model(self, model_name, require_ready=True) Return the model with the given case-insensitive model_name.
Raise LookupError if no model exists with this name.
▶ def get_models(self, include_auto_created=False, include_swapped=False) Return 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.
Overrides
This method is overriden in:
▶ def ready(self) Override this method in subclasses to run code when Django starts.
Overrides
This method is overriden in:
Class methods
▷ def create(cls, entry) @classmethod Factory that creates an app config from an entry in INSTALLED_APPS.
@classmethod
def create(
cls,
entry,
)
Subclasses
Reexports