summaryrefslogtreecommitdiff
path: root/django/apps/config.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-20Refs #31180 -- Removed default_app_config application configuration variable ↵Mariusz Felisiak
per deprecation timeline.
2021-03-26Refs #32355 -- Corrected comments about Python's _NamespacePath.William Schwartz
_NamespacePath supports indexing in Python 3.8+.
2020-12-22Fixed #32285 -- Raised ImproperlyConfigured when AppConfig.label is not a ↵Hasan Ramezani
valid Python identifier.
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-08-10Fixed #31870 -- Fixed crash when populating app registry with empty or ↵Iuri de Silvio
without apps module. Regression in 3f2821af6bc48fa8e7970c1ce27bc54c3172545e.
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-04-27Removed unnecessary tuple wrapping of single format string argument.François Freitag
2018-09-26Fixed #29768 -- Improved error message when an AppConfig has a typo in ↵Marten Kenbeek
INSTALLED_APPS.
2018-09-25Normalized spelling of "lowercase" and "lowercased".Jon Dufresne
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-01-25Refs #23919 -- Removed misc Python 2/3 references.Tim Graham
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2016-11-20Refs #26207 -- Removed obsolete comments about deferred model classes.Adam Chainz
2016-10-28Added require_ready argument to get_model methods.Aymeric Augustin
This allows bringing back the behavior of Django < 1.7. Also fixed the check for the app registry being ready in AppConfig.get_model(s), which was inconsistent with the equivalent check in Apps.get_model(s). That part is a backwards-incompatible change.
2016-10-28Simplified AppConfig.import_models().Aymeric Augustin
Since AppConfig now has a reference to its parent Apps registry, it can look up the models there instead of receiving them in argument.
2016-10-28Modified readiness check in AppConfig.get_model(s).Aymeric Augustin
It was inconsistent with the equivalent check in Apps.get_model(s) because I made incorrect assumptions when I wrote that code and needlessly complicated readiness checks. This is a backwards-incompatible change.
2016-06-02Fixed #26616 -- Improved error message when AppConfig.name is invalid.inondle
2016-04-29Fixed #26207 -- Replaced dynamic classes with non-data descriptors for ↵Anssi Kääriäinen
deferred instance loading.
2015-09-02Fixed #25246 -- Guarded against duplicate paths in AppConfig.Caio Ariede
2015-06-18Removed support for Python 3.3.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Removed an obsolete comment in django/apps/config.pyTim Graham
2014-09-08Fixed #22920 -- Avoid masking some exceptions.Aymeric Augustin
If loading an application trigger an ImportError, the details of that error were lost in some cases. Thanks Ben Davis for the report.
2014-07-12Checked more precisely whether the app registry is ready.Aymeric Augustin
Accounted for the three stages of population: app configs, models, ready() methods of app configs.
2014-02-15Fixed two typos.Rodolfo Carvalho
2014-01-27Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer
Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
2014-01-26Fixed some missing/extraneous new line warnings.Simon Charette
2014-01-26Fixed #21877 -- Renamed django.apps.base to config.Aymeric Augustin