In this course, you'll delve into advanced Flask techniques to elevate your application. You'll learn how to implement middlewares, create custom error handling to improve user experience, apply CSS for styling your app, and manage sessions to enhance functionality and user-friendliness.
Overview
Syllabus
- Lesson 1: Implementing a Timer Middleware
- Observe Middleware in Action
- Add Before and After Request Decorators
- Fix the Timing Middleware Issue
- Complete Middleware Setup
- Lesson 2: Custom Error Handling in Flask
- Triggering the Error Handler
- Modifying Route to Trigger 404 Error
- Fix the Custom Error Handler
- Create a Custom Error Handler
- Lesson 3: Styling Flask Applications with CSS
- Flask Styles Coming to Life
- Fix the CSS Link Mistake
- Adding Styles to HTML Templates
- Dark Theme Styling
- Lesson 4: Using Sessions to Manage Theme Preference
- Session Managed Theme Switching in Action
- Altering Session Default Values
- Debug Session Management in Flask
- Session Handling in Flask