I've just configured my remote PostgreSQL database @ Elephant but now I'd like to also set the local PostgreSQL connection in order to make some tests before going online (remote db).
This is my settings.py:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '***',
'USER': '***',
'PASSWORD': '***',
'HOST': 'lallah.db.elephantsql.com',
'PORT': '5432',
}
}
How can I update the settings.py to also let me use the localhost PostgreSQL connection without erasing the elephant configurations?
Thank you!
localhostserver have a replica setup of the remote? If so follow instructions here Multiple databasesmakemigrations & migratewithout disturbing the remote server?