Learn Flask
Build and ship a Flask web app from the first route to the live site: requests and routes, Jinja2 templates and forms, databases with Flask-SQLAlchemy, accounts with Flask-Login, and deployment with Gunicorn and environment variables. Examples are run and checked against Flask 3.1.
- Intermediate level
- 5 modules
- 27 lessons
- 161 quiz questions
Syllabus
01Flask FundamentalsHow the web talks, then your first Flask app: routes, variable URLs and converters, responses and status codes, query strings and HTTP methods.10 lessons
02Templates and FormsRender HTML with Jinja2 variables, filters, conditions, loops and shared layouts, then take input from visitors with plain forms and with validated Flask-WTF forms.4 lessons
03DatabasesConnect Flask-SQLAlchemy to a database, describe tables as models, link them with relationships, then create, query, update and delete rows and handle failed commits.5 lessons
04Accounts and AuthenticationHash passwords, register members, log them in and out with Flask-Login, protect routes, redirect safely and make sure people only reach their own data.5 lessons
05DeploymentPut the app on the internet the way production expects: a real WSGI server instead of the development server, settings and secrets from environment variables, debug mode off, and a walkthrough of the steps every platform host asks for.3 lessons