1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #22002 -- Documented avoiding database interaction in AppConfig.ready().

Thanks Marc Tamlyn for the suggestion.
This commit is contained in:
Zbigniew Siciarz
2014-02-15 17:27:12 +01:00
committed by Tim Graham
parent cd7f37b647
commit 94b5bc361a
3 changed files with 19 additions and 0 deletions

View File

@@ -196,6 +196,11 @@ advanced settings.
your tests. *It is a bad idea to have such import-time database queries in
your code* anyway - rewrite your code so that it doesn't do this.
.. versionadded:: 1.7
This also applies to customized implementations of
:meth:`~django.apps.AppConfig.ready()`.
.. seealso::
The :ref:`advanced multi-db testing topics <topics-testing-advanced-multidb>`.