Daily Archives: 11.10.13

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”

Posted in Diverse | Comments Off on Postgres in python using flask-psycopg2