Fixed #8033 -- Explained app registry error during translation setup

Thanks Tim Graham and Aymeric Augustin for the review.
This commit is contained in:
Claude Paroz 2014-06-21 15:00:35 +02:00
parent 21c496ea52
commit 9618d68b34
5 changed files with 20 additions and 7 deletions

View file

@ -382,9 +382,9 @@ Troubleshooting
Here are some common problems that you may encounter during initialization:
* ``RuntimeError: App registry isn't ready yet.`` This happens when importing
an application configuration or a models module triggers code that depends
on the app registry.
* ``AppRegistryNotReady`` This happens when importing an application
configuration or a models module triggers code that depends on the app
registry.
For example, :func:`~django.utils.translation.ugettext()` uses the app
registry to look up translation catalogs in applications. To translate at

View file

@ -934,7 +934,7 @@ script with::
>>> import django
>>> django.setup()
Otherwise, you will hit ``RuntimeError: App registry isn't ready yet.``
Otherwise, you will hit an ``AppRegistryNotReady`` exception.
App registry consistency
^^^^^^^^^^^^^^^^^^^^^^^^