Syllabus

  1. 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
    1. 01What a Back End Does
    2. 02Requests and Responses
    3. 03Status Codes and Methods
    4. 04The Application Object
    5. 05Running the Development Server
    6. 06Routes and Views
    7. 07Variable URLs and Converters
    8. 08Responses and Status Codes
    9. 09Query Strings and HTTP Methods
    10. 10Read and Debug a Whole App
  2. 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
    1. 01Variables, Filters and Escaping
    2. 02Conditions, Loops and Layouts
    3. 03Reading Form Data
    4. 04Validated Forms with Flask-WTF
  3. 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
    1. 01Connecting and Defining Models
    2. 02Relationships and Saving Rows
    3. 03Selecting, Filtering and Routes
    4. 04Updating, Deleting and Rolling Back
    5. 05Project: The Observatory Log API
  4. 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
    1. 01Hashing Passwords
    2. 02The Member Model and Registration
    3. 03Logging In and Out with Flask-Login
    4. 04Protecting Routes and Redirecting Safely
    5. 05Whose Firing Is It?
  5. 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
    1. 01Serving with Gunicorn
    2. 02Settings, SECRET_KEY and Debug Mode
    3. 03Deploying to a Platform Host