Commit d32edd8c authored by Jose Carlos Menezes's avatar Jose Carlos Menezes Committed by Tim Graham
Browse files

[1.8.x] Fixed #25351 -- Added example for database test settings to docs.

Backport of cf99bae5 from master
parent 501b32b2
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -623,8 +623,22 @@ TEST
Default: ``{}``

A dictionary of settings for test databases; for more details about the
creation and use of test databases, see :ref:`the-test-database`. The
following entries are available:
creation and use of test databases, see :ref:`the-test-database`.

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