mirror of
https://github.com/django/django.git
synced 2025-07-23 21:25:40 +00:00
Added release notes for app loading changes.
This commit is contained in:
parent
dbe2fb632d
commit
285e765891
3 changed files with 48 additions and 2 deletions
|
@ -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``.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue