Connecting to a external postgresql database


I would like to connect my web application (written in django) to a external postgresql database.
Can in be done? My guess is that I need to edit the enviroment variable


using the a syntax similar to:


Am I right or am I missing something? Is render firewall filtering some ports?

           thanks for the help

Hi there,

Thanks for reaching out.

Yes, if you Django app utilises a standard Postgres connection string, it would be along the lines of


These details would come from your Postgres provider and you’d need to ensure it permits connections from Render/the public internet.

Kind regards


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.