0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Copy-edited previous commit.

Thanks Tim for the review.
This commit is contained in:
Aymeric Augustin 2013-12-24 23:48:22 +01:00
parent 285e765891
commit 8c78cba47f
2 changed files with 4 additions and 5 deletions

View File

@ -1297,7 +1297,7 @@ application. :ref:` Learn more about applications </ref/applications>`.
.. 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.
app registry, :attr:`django.apps.apps`, instead.
.. admonition:: Application labels must be unique

View File

@ -66,12 +66,11 @@ known as the "app cache" dealt with both installed applications and models.
The models module was used as an identifier for applications in many APIs.
As the concept of :doc:`Django applications </ref/applications>` matured, this
code showed some shortcomings. It was refactored into an "app registry" where
models modules no longer have a central role models and where it's possible to
code showed some shortcomings. It has been refactored into an "app registry"
where models modules no longer have a central role and where it's possible to
attach configuration data to applications.
Not only does this prepare the ground for further improvements, but it also
brings some concrete improvements:
Improvements thus far include:
* It is possible to omit ``models.py`` entirely if an application doesn't
have any models.