Adjusted multi-db example to avoid confusion with DATABASES keys.

This commit is contained in:
MansurAliKoroglu 2019-07-29 07:24:43 +03:00 committed by Mariusz Felisiak
parent 4ce7d86cbe
commit d88952142b
1 changed files with 4 additions and 4 deletions

View File

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