0Pricing
Flask Academy · Lesson

Install and Configure the Extension

Set the database URI and init SQLAlchemy.

Why an ORM at All

Writing raw SQL by hand gets messy fast. An ORM lets you work with Python objects and rows feel like normal classes. 🗃️

Meet Flask-SQLAlchemy

Flask-SQLAlchemy is the official extension that wires SQLAlchemy into Flask, so your app gets a clean, ready-to-use database layer.

All lessons in this course

  1. Install and Configure the Extension
  2. Define Your First Model Class
  3. Columns, Types, and Constraints
  4. Create the Schema with create_all
← Back to Flask Academy