diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt
index 8a02305..380d403 100644
a
|
b
|
documentation.
|
20 | 20 | |
21 | 21 | Databases can have any alias you choose. However, the alias |
22 | 22 | ``default`` has special significance. Django uses the database with |
23 | | the alias of ``default`` when no other database has been selected. If |
24 | | you don't have a ``default`` database, you need to be careful to |
25 | | always specify the database that you want to use. |
| 23 | the alias of ``default`` when no other database has been selected. |
26 | 24 | |
27 | 25 | The following is an example ``settings.py`` snippet defining two |
28 | 26 | databases -- a default PostgreSQL database and a MySQL database called |
… |
… |
databases -- a default PostgreSQL database and a MySQL database called
|
45 | 43 | } |
46 | 44 | } |
47 | 45 | |
| 46 | If the concept of a ``default`` database doesn't make sense in the context |
| 47 | of your project, you need to be careful to always specify the database |
| 48 | that you want to use. Django requires that a ``default`` database entry |
| 49 | be defined, but the parameters dictionary can be empty if it will not |
| 50 | be used. |
| 51 | |
| 52 | The following is an example ``settings.py`` snippet defining two non-default |
| 53 | databases, with the default entry intentionally left empty. |
| 54 | |
| 55 | .. code-block:: python |
| 56 | |
| 57 | DATABASES = { |
| 58 | 'default': {}, |
| 59 | 'users': { |
| 60 | 'NAME': 'user_data', |
| 61 | 'ENGINE': 'django.db.backends.mysql', |
| 62 | 'USER': 'mysql_user', |
| 63 | 'PASSWORD': 'superS3cret' |
| 64 | }, |
| 65 | 'customers': { |
| 66 | 'NAME': 'customer_data', |
| 67 | 'ENGINE': 'django.db.backends.mysql', |
| 68 | 'USER': 'mysql_cust', |
| 69 | 'PASSWORD': 'veryPriv@ate' |
| 70 | } |
| 71 | } |
| 72 | |
48 | 73 | If you attempt to access a database that you haven't defined in your |
49 | 74 | :setting:`DATABASES` setting, Django will raise a |
50 | 75 | ``django.db.utils.ConnectionDoesNotExist`` exception. |