[3.1.x] Adjusted multi-db example to avoid confusion with DATABASES keys.

Backport of d88952142b from master
This commit is contained in:
MansurAliKoroglu 2019-07-29 07:24:43 +03:00 committed by Mariusz Felisiak
parent 8904895a80
commit 05206ca4ff
1 changed files with 4 additions and 4 deletions

View File

@ -275,25 +275,25 @@ databases::
DATABASES = { DATABASES = {
'default': {}, 'default': {},
'auth_db': { 'auth_db': {
'NAME': 'auth_db', 'NAME': 'auth_db_name',
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'USER': 'mysql_user', 'USER': 'mysql_user',
'PASSWORD': 'swordfish', 'PASSWORD': 'swordfish',
}, },
'primary': { 'primary': {
'NAME': 'primary', 'NAME': 'primary_name',
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'USER': 'mysql_user', 'USER': 'mysql_user',
'PASSWORD': 'spam', 'PASSWORD': 'spam',
}, },
'replica1': { 'replica1': {
'NAME': 'replica1', 'NAME': 'replica1_name',
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'USER': 'mysql_user', 'USER': 'mysql_user',
'PASSWORD': 'eggs', 'PASSWORD': 'eggs',
}, },
'replica2': { 'replica2': {
'NAME': 'replica2', 'NAME': 'replica2_name',
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'USER': 'mysql_user', 'USER': 'mysql_user',
'PASSWORD': 'bacon', 'PASSWORD': 'bacon',