class documentation

Class representing a Django application and its configuration.

Class Method create Factory that creates an app config from an entry in INSTALLED_APPS.
Method __init__ Undocumented
Method __repr__ Undocumented
Method get_model Return the model with the given case-insensitive model_name.
Method get_models Return an iterable of models.
Method import_models Undocumented
Method ready Override this method in subclasses to run code when Django starts.
Instance Variable apps Undocumented
Instance Variable label Undocumented
Instance Variable models Undocumented
Instance Variable models_module Undocumented
Instance Variable module Undocumented
Instance Variable name Undocumented
Instance Variable path Undocumented
Instance Variable verbose_name Undocumented
Property default_auto_field Undocumented
Method _path_from_module Attempt to determine app's filesystem path from its module.
Property _is_default_auto_field_overridden Undocumented
@classmethod
def create(cls, entry): (source)

Factory that creates an app config from an entry in INSTALLED_APPS.

def __init__(self, app_name, app_module): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def get_model(self, model_name, require_ready=True): (source)

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): (source)

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.

def import_models(self): (source)

Undocumented

models_module = (source)

Undocumented

Undocumented

Undocumented

def _path_from_module(self, module): (source)

Attempt to determine app's filesystem path from its module.

@property
_is_default_auto_field_overridden = (source)

Undocumented