db_conn = 'postgresql+psycopg2://databaseuser:P@ssw0rd@localhost/the_database'
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = db_conn
db = SQLAlchemy(app)
Как запустить Postgres локально