Quindi il socket PostgreSQL è in /opt/bitnami/postgresql ma il tuo libpq (la libreria C che psycopg2 wraps) sta cercando il socket in /tmp , Giusto? Prova a cambiare HOST impostazione per puntare alla posizione corretta della presa
:
'default': {
'ENGINE': 'postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres'
'PASSWORD': 'bitnami',
'HOST': '/opt/bitnami/postgresql/.s.PGSQL.5432', # <-------
'PORT': '5432',
}
O questo :
'default': {
'ENGINE': 'postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres'
'PASSWORD': 'bitnami',
'HOST': '/opt/bitnami/postgresql', # <-------
'PORT': '5432',
}
E potresti voler cambiare anche la password PostgreSQL.