use django with another database

Solutions on MaxInterview for use django with another database by the best coders in the world

showing results for - "use django with another database"
Ariadne
08 Apr 2019
1DATABASES = {
2    'default': {},
3    'users': {
4        'NAME': 'user_data',
5        'ENGINE': 'django.db.backends.mysql',
6        'USER': 'mysql_user',
7        'PASSWORD': 'superS3cret'
8    },
9    'customers': {
10        'NAME': 'customer_data',
11        'ENGINE': 'django.db.backends.mysql',
12        'USER': 'mysql_cust',
13        'PASSWORD': 'veryPriv@ate'
14    }
15}
16