Guides
Flask + Turso
Set up Turso in your Flask project in minutes
Prerequisites
Before you start, make sure you:
- Install the Turso CLI
- Sign up or login to Turso
- Have a Flask app — learn more
1
Install the libSQL dialect
2
Retrieve database credentials
Get the database URL:
Get the database authentication token:
Assign credentials to the environment variables inside .env
.
3
Create database models
models.py
4
Query
Examples
Was this page helpful?