Web Development with Flask and Django
Start with a minimal Flask service, then build a full-stack Django app with models, migrations, views, templates, forms, and a tested request/response boundary.
Functions, classes, JSON, HTTP basics, and tests.
Build a minimal Flask JSON service, then a full-stack Django app with models, migrations, views, templates, forms, and a tested request/response boundary.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 17.01Project: A Flask micro web appProject4 min
Build a small Flask JSON service with an app factory, validated requests, honest status codes, and tests that never start a live server.
- 17.02Django Fundamentals4 min
Create a Django project and app, model data with migrations, and connect requests to views and templates.
- 17.03Templates and Forms4 min
Build consistent pages with template inheritance, validate user input with forms, and handle POST requests without losing errors.
- 17.04Project: A Django Blog ApplicationProject4 min
Build a Django blog with a Post model, migrations, public pages, an authenticated create form, and tests that keep drafts private.
Ready to move on?
Ship a tested Flask endpoint, then a Django app with a model, CRUD views, template inheritance, form validation, and draft privacy tests.
Open the module self-check