mirror of https://github.com/django/django.git
[1.8.x] Fixed #25351 -- Added example for database test settings to docs.
Backport of cf99bae53a
from master
This commit is contained in:
parent
501b32b255
commit
d32edd8c99
|
@ -623,8 +623,22 @@ TEST
|
||||||
Default: ``{}``
|
Default: ``{}``
|
||||||
|
|
||||||
A dictionary of settings for test databases; for more details about the
|
A dictionary of settings for test databases; for more details about the
|
||||||
creation and use of test databases, see :ref:`the-test-database`. The
|
creation and use of test databases, see :ref:`the-test-database`.
|
||||||
following entries are available:
|
|
||||||
|
Here's an example with a test database configuration::
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
|
'USER': 'mydatabaseuser',
|
||||||
|
'NAME': 'mydatabase',
|
||||||
|
'TEST': {
|
||||||
|
'NAME': 'mytestdatabase',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
The following keys in the ``TEST`` dictionary are available:
|
||||||
|
|
||||||
.. setting:: TEST_CHARSET
|
.. setting:: TEST_CHARSET
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue