Siecje
Siecje

Reputation: 3712

How to use APSW with Flask

I have a sqlite3 database but the database is only getting updated when I restart the Flask server.

I think it is because I don't tell Flask that it is a database. So I started using SQLAlchemy and set

    db = SQLAlchemy(app)

but SQLAlchemy uses pysqlite2 and pysqlite2 will not work on my computer.

Is there a way to use APSW (another python sqlite3 wrapper) with SQLALchemy?

Or is there a way to tell flask to use my database without SQLAlchemy?

or is my problem of the database not updating fixed another way?

Upvotes: 2

Views: 444

Answers (1)

codegeek
codegeek

Reputation: 33309

Just use this flask tutorial. It uses sqlite and there is no use of sqlalchemy.

http://flask.pocoo.org/docs/tutorial/

Upvotes: -1

Related Questions