I have two db in my project and two routes, but when i try login in my app othe default db dont use django.contrib.auth of my other db
DATABASES = {
'default': {
'ENGINE': os.getenv('DB_PRODUCTION_ENGINE', 'change-me'),
'NAME': os.getenv('POSTGRES_PRODUCTION_DB', 'change-me'),
'USER': os.getenv('POSTGRES_PRODUCTION_DB_USER', 'change-me'),
'PASSWORD': os.getenv('POSTGRES_PRODUCTION_DB_PASSWORD', 'change-me'),
'HOST': os.getenv('POSTGRES_PRODUCTION_HOST', 'change-me'),
'PORT': os.getenv('POSTGRES_PRODUCTION_PORT', 'change-me'),
'TEST': {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "test_prod_db.sqlite3",
},
},
'development': {
'ENGINE': os.getenv('DB_DEVELOPMENT_ENGINE', 'change-me'),
'NAME': os.getenv('POSTGRES_DEVELOPMENT_DB', 'change-me'),
'USER': os.getenv('POSTGRES_DEVELOPMENT_DB_USER', 'change-me'),
'PASSWORD': os.getenv('POSTGRES_DEVELOPMENT_DB_PASSWORD', 'change-me'),
'HOST': os.getenv('POSTGRES_DEVELOPMENT_HOST', 'change-me'),
'PORT': os.getenv('POSTGRES_DEVELOPMENT_PORT', 'change-me'),
'TEST': {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "test_dev_db.sqlite3",
},
}
}