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:11:58 -0400 |
| commit | cf99bae53af2ed8f73622bc8a8ed0331c272fda3 (patch) | |
| tree | 33844c68804b6cf7fa3ef6cde4f0afc6ee68a308 /docs/ref/settings.txt | |
| parent | 0c7c18cc9e80101c882749c99437ad700fde0ca0 (diff) | |
Fixed #25351 -- Added example for database test settings to docs.
Diffstat (limited to 'docs/ref/settings.txt')
| -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 4a9c78a3db..f4e5c37d76 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -665,8 +665,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 |
