Skip to content

Rainymood/flask-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask + Postgres

Tiny setup showing Flask + Postgres database

Link to tutorial followed link

Setup

conda create --name flask-postgres python==3.9 -y
conda activate flask-postgres
pip install poetry
poetry config virtualenvs.create false
poetry install

Workaround for insufficient privileges

CREATE ROLE dbowner NOLOGIN;
ALTER DATABASE flask_db OWNER TO dbowner;
GRANT dbowner TO sammy;

.env contents

DB_USERNAME=sammy
DB_PASSWORD= ... (see tutorial)
FLASK_APP=app
FLASK_DEBUG=TRUE

About

Tiny setup showing flask + postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published