Postgres in python using flask-psycopg2

Not the most well-documented module I’ve ever seen…

To make it connect to your database of choise, in the app-settings, feed in

PSYCOPG2_DATABASE_URI=”pgsql://dbuser:dbpassword@dbhost/database”

e.g.

PSYCOPG2_DATABASE_URI=”pgsql://postgres:Secr1tPsswrd@localhost/postgres”

This entry was posted in Diverse. Bookmark the permalink.