Kaydet (Commit) 8c78cba4 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Copy-edited previous commit.

Thanks Tim for the review.
üst 285e7658
...@@ -1297,7 +1297,7 @@ application. :ref:` Learn more about applications </ref/applications>`. ...@@ -1297,7 +1297,7 @@ application. :ref:` Learn more about applications </ref/applications>`.
.. admonition:: Use the application registry for introspection .. admonition:: Use the application registry for introspection
Your code should never access :setting:`INSTALLED_APPS` directly. Use the 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 .. admonition:: Application labels must be unique
......
...@@ -66,12 +66,11 @@ known as the "app cache" dealt with both installed applications and models. ...@@ -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. The models module was used as an identifier for applications in many APIs.
As the concept of :doc:`Django applications </ref/applications>` matured, this As the concept of :doc:`Django applications </ref/applications>` matured, this
code showed some shortcomings. It was refactored into an "app registry" where code showed some shortcomings. It has been refactored into an "app registry"
models modules no longer have a central role models and where it's possible to where models modules no longer have a central role and where it's possible to
attach configuration data to applications. attach configuration data to applications.
Not only does this prepare the ground for further improvements, but it also Improvements thus far include:
brings some concrete improvements:
* It is possible to omit ``models.py`` entirely if an application doesn't * It is possible to omit ``models.py`` entirely if an application doesn't
have any models. have any models.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment