Syllabus

  1. 01Models and RowsConnect a Flask app to a SQLite database, describe tables as Python classes, link two tables with a foreign key and a relationship, and save the first rows.2 lessons
    1. 01Connecting and Defining Models
    2. 02Relationships and Saving Rows
  2. 02QueryingRead rows back with select, narrow and order them, fetch one row safely, follow relationships without a flood of queries, and turn a missing row into a 404 in a route.1 lesson
    1. 01Selecting, Filtering and Routes
  3. 03Changing DataUpdate and delete rows, keep related rows consistent with cascades, recover cleanly when a commit fails, then build a small observatory API that uses every piece.2 lessons
    1. 01Updating, Deleting and Rolling Back
    2. 02Project: The Observatory Log API