class AppConfig:
Known subclasses: django.contrib.admin.apps.SimpleAdminConfig
, django.contrib.admindocs.apps.AdminDocsConfig
, django.contrib.auth.apps.AuthConfig
, django.contrib.contenttypes.apps.ContentTypesConfig
, django.contrib.flatpages.apps.FlatPagesConfig
, django.contrib.gis.apps.GISConfig
, django.contrib.humanize.apps.HumanizeConfig
, django.contrib.messages.apps.MessagesConfig
, django.contrib.postgres.apps.PostgresConfig
, django.contrib.redirects.apps.RedirectsConfig
, django.contrib.sessions.apps.SessionsConfig
, django.contrib.sitemaps.apps.SiteMapsConfig
, django.contrib.sites.apps.SitesConfig
, django.contrib.staticfiles.apps.StaticFilesConfig
, django.contrib.syndication.apps.SyndicationConfig
, django.db.migrations.state.AppConfigStub
Class Method | create |
Factory that creates an app config from an entry in INSTALLED_APPS. |
Method | get_model |
Return the model with the given case-insensitive model_name. |
Method | get_models |
Return an iterable of models. |
Method | ready |
Override this method in subclasses to run code when Django starts. |
Instance Variable | label |
Undocumented |
Instance Variable | models_module |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | path |
Undocumented |
Instance Variable | verbose_name |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | _path_from_module |
Attempt to determine app's filesystem path from its module. |
Method | import_models |
Undocumented |
Instance Variable | apps |
Undocumented |
Instance Variable | models |
Undocumented |
Property | _is_default_auto_field_overridden |
Undocumented |
Property | default_auto_field |
Undocumented |
Return the model with the given case-insensitive model_name.
Raise LookupError if no model exists with this name.
Return an iterable of models.
By default, the following models aren't included:
Set the corresponding keyword argument to True to include such models. Keyword arguments aren't documented; they're a private API.
django.contrib.admin.apps.SimpleAdminConfig
, django.contrib.auth.apps.AuthConfig
, django.contrib.contenttypes.apps.ContentTypesConfig
, django.contrib.gis.apps.GISConfig
, django.contrib.postgres.apps.PostgresConfig
, django.contrib.sites.apps.SitesConfig
, django.contrib.staticfiles.apps.StaticFilesConfig
django.contrib.admin.apps.SimpleAdminConfig
, django.contrib.admindocs.apps.AdminDocsConfig
, django.contrib.auth.apps.AuthConfig
, django.contrib.contenttypes.apps.ContentTypesConfig
, django.contrib.flatpages.apps.FlatPagesConfig
, django.contrib.gis.apps.GISConfig
, django.contrib.humanize.apps.HumanizeConfig
, django.contrib.messages.apps.MessagesConfig
, django.contrib.postgres.apps.PostgresConfig
, django.contrib.redirects.apps.RedirectsConfig
, django.contrib.sessions.apps.SessionsConfig
, django.contrib.sitemaps.apps.SiteMapsConfig
, django.contrib.sites.apps.SitesConfig
, django.contrib.staticfiles.apps.StaticFilesConfig
, django.contrib.syndication.apps.SyndicationConfig
, django.db.migrations.state.AppConfigStub
Undocumented
django.contrib.admin.apps.SimpleAdminConfig
, django.contrib.admindocs.apps.AdminDocsConfig
, django.contrib.auth.apps.AuthConfig
, django.contrib.contenttypes.apps.ContentTypesConfig
, django.contrib.flatpages.apps.FlatPagesConfig
, django.contrib.gis.apps.GISConfig
, django.contrib.humanize.apps.HumanizeConfig
, django.contrib.messages.apps.MessagesConfig
, django.contrib.postgres.apps.PostgresConfig
, django.contrib.redirects.apps.RedirectsConfig
, django.contrib.sessions.apps.SessionsConfig
, django.contrib.sitemaps.apps.SiteMapsConfig
, django.contrib.sites.apps.SitesConfig
, django.contrib.staticfiles.apps.StaticFilesConfig
, django.contrib.syndication.apps.SyndicationConfig
Undocumented
django.db.migrations.state.AppConfigStub
Undocumented
django.contrib.admin.apps.SimpleAdminConfig
, django.contrib.auth.apps.AuthConfig
, django.contrib.contenttypes.apps.ContentTypesConfig
, django.contrib.flatpages.apps.FlatPagesConfig
, django.contrib.gis.apps.GISConfig
, django.contrib.redirects.apps.RedirectsConfig
, django.contrib.sitemaps.apps.SiteMapsConfig
, django.contrib.sites.apps.SitesConfig
Undocumented