Created
December 1, 2014 19:28
-
-
Save Atala/6ce8cb14aaa167687046 to your computer and use it in GitHub Desktop.
Django TEST_MIRROR issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! debug | |
ipdb> connections['default'].cursor().db.connection | |
<connection object at 0x10646d180; dsn: 'dbname=test_master', closed: 0> | |
ipdb> connections['prestashop'].cursor().db.connection | |
<connection object at 0x10670d3e0; dsn: 'dbname=test_master', closed: 0> | |
#! settings | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': 'master', | |
'USER': '', | |
'PASSWORD': '', | |
}, | |
'prestashop': { | |
'NAME': 'slave', | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'USER': '', | |
'PASSWORD': '', | |
'TEST': { | |
'MIRROR' : 'default' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment