Skip to content

Commit

Permalink
Fixed #20166 -- Updated DB dependency documentation and fixed example
Browse files Browse the repository at this point in the history
Updated the documentation for how to control the order in which
tests databases are created by making it clear that the reason the
default is always created first is because by default all databases
are made dependent on the default one. Also fixed the example
to be correct as before this change it was actually raising
the ImproperlyConfigured exception
  • Loading branch information
czambran committed Mar 31, 2013
1 parent 3350360 commit 39a79dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/topics/testing/advanced.txt
Expand Up @@ -113,7 +113,8 @@ two databases.
Controlling creation order for test databases
---------------------------------------------

By default, Django will always create the ``default`` database first.
By default, Django will assume all databases depend on the ``default``
database and therefore always create the ``default`` database first.
However, no guarantees are made on the creation order of any other
databases in your test setup.

Expand All @@ -129,6 +130,7 @@ can specify the dependencies that exist using the
},
'diamonds': {
# ... db settings
'TEST_DEPENDENCIES': []
},
'clubs': {
# ... db settings
Expand Down

0 comments on commit 39a79dc

Please sign in to comment.