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 = { 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',