Added release notes for app loading changes.

This commit is contained in:
Aymeric Augustin 2013-12-24 19:00:29 +01:00
parent dbe2fb632d
commit 285e765891
3 changed files with 48 additions and 2 deletions

View file

@ -124,8 +124,8 @@ Application registry
.. method:: django.apps.apps.get_app_config(app_label, only_with_models_module=False)
Returns an :class:`~django.apps.AppConfig` for the application with the
given ``app_label``. Raises :exc:`LookupError` if no such application
exists.
given ``app_label``. Raises :exc:`~exceptions.LookupError` if no such
application exists.
If only applications containing a models module are of interest, this method
can be called with ``only_with_models_module=True``.

View file

@ -1290,6 +1290,15 @@ Django installation. Each string should be a full Python path to an
application configuration class or to a Python package containing a
application. :ref:` Learn more about applications </ref/applications>`.
.. versionchanged:: 1.7
:setting:`INSTALLED_APPS` now supports application configurations.
.. admonition:: Use the application registry for introspection
Your code should never access :setting:`INSTALLED_APPS` directly. Use the
app registry, :attr:`~django.apps.apps`, instead.
.. admonition:: Application labels must be unique
Application labels (that is, the final part of the dotted path to