smnorris / bcfishpass

Model and monitor aquatic habitat connectivity in BC. Tools to plan and prioritize the assessment and remediation of barriers.
https://smnorris.github.io/bcfishpass
Apache License 2.0
8 stars 13 forks source link

Parse DATABASE_URL for connecting via psycopg2 #520

Closed andrewp-CWF closed 5 months ago

andrewp-CWF commented 5 months ago

DATABASE_URL works, it only needs to be parsed to pass the connection info to psycopg2.

smnorris commented 5 months ago

Thanks. I think it is possible to get psycopg2 to use a url directly - but this works great.