A
A
Alexander2015-01-18 15:36:40
Flask
Alexander, 2015-01-18 15:36:40

Flask how to connect to postgresql?

Hello, please tell me how to connect to postgresql in flask, or give a link, where they usually connect to sqlite)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Shnyrev, 2015-01-18
@dmnBrest

postgresapp.com/documentation/configuration-python.html
but this is for SQLAlchemy + Flask

A
Andrey K, 2015-01-18
@mututunus

initd.org/psycopg

A
Alexey Ismailov, 2015-01-26
@sormon

from sqlalchemy import create_engine
engine = create_engine('postgresql://login:[email protected]/db')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question