Closed sshleifer closed 1 year ago
Answer1)
Don't use psycopg2-binary
: psycopg-vs-psycopg-binary, use psycopg2
instead.
The error Error: pg_config executable not found.
is caused by something(which is postgresql-devel) missing, command pip install django-db-connection-pool[postgresql]
will install psycopg2
, and psycopg2
requires postgresql-devel
, Before installing psycopg2
, you should make sure that postgresql-devel
is already installed, HOWTO.
Answer2) Neither django-db-connection-pool nor psycopg2 need be added to INSTALLED_APPS.
I'm using google's Cloud SQL for production DB and hitting connection limits.
When I try
I get the following
Error: pg_config executable not found.
(see Full Traceback below)Q1) I don't run/configure postgres locally, is this a blocker? Q2) do I need to add anything to
INSTALLED_APPS
in settings.py or justDATABASES
Thanks!
Env
Python 3.8.12
+Full Traceback