diff options
| author | Jose Carlos Menezes <jcmenezes.91@gmail.com> | 2015-09-10 13:24:09 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-11 08:19:32 -0400 |
| commit | d32edd8c99da8a5035542b7bcc83891edda73116 (patch) | |
| tree | 15bc31e673431840118be939f649fa6584be4bb4 /docs | |
| parent | 501b32b2551c12428b7637733701541bb7222cfa (diff) | |
[1.8.x] Fixed #25351 -- Added example for database test settings to docs.
Backport of cf99bae53af2ed8f73622bc8a8ed0331c272fda3 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/settings.txt | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index a06b4966c8..6fe2dc1462 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -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 |
