myBackend = load_backend('postgresql_psycopg2')
myConnection = myBackend.DatabaseWrapper({'DATABASE_HOST': '192.168.1.1',
    'DATABASE_NAME': 'my_database', 'DATABASE_OPTIONS': {},
    'DATABASE_PASSWORD': '', 'DATABASE_PORT': '', 'DATABASE_USER':
    'my_user', 'TIME_ZONE': 'America/New_York'})
myCursor = myConnection.cursor()
Multiple database support in django