django-environ icon indicating copy to clipboard operation
django-environ copied to clipboard

Reading .pgpass for a Postgresql connection

Open krzysztofjeziorny opened this issue 4 years ago • 1 comments

Is there a way to read the .pgpass file for the database connection? Setting just DJANGO_DATABASE_URL=postgres://host/database without credentials would be very handy.

https://www.postgresql.org/docs/12/libpq-pgpass.html

krzysztofjeziorny avatar Oct 13 '20 09:10 krzysztofjeziorny

Using dj-database-url unfortunately doesn't solve it.

krzysztofjeziorny avatar Oct 15 '20 12:10 krzysztofjeziorny