I have a Django app that I built, I am trying to upload the app into the app engine, but for some reason, I am getting the error could not connect to server: No such file or directory. Is the server running locally and accepting connections on Unix domain socket
I already upload another Django app to GCP using the app engine, but this time is different; my guess is something about PostgreSQL.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'main',
'USER': os.getenv('USERNAME'),
'PASSWORD': os.getenv('PASSWORD'),
'HOST': os.getenv("HOST"),
'PORT': '5432'
}
}
I tried removing the port, change it, etc.. locally. The app is running and can connect to the proxy; when I deploy the app, it can not connect. And I made sure I close the local connection before I deploy the app just in case. My old app is running with the same configuration except for engine 'django.db.backends.postgresql_psycopg2' The reason I change the engine here was that django postgresql