mirror of https://github.com/django/django.git
Adjusted multi-db example to avoid confusion with DATABASES keys.
This commit is contained in:
parent
4ce7d86cbe
commit
d88952142b
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue