mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #8033 -- Explained app registry error during translation setup
Thanks Tim Graham and Aymeric Augustin for the review.
This commit is contained in:
parent
21c496ea52
commit
9618d68b34
5 changed files with 20 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue