Flask Interview Prep
5 min read Quiz at the end
Interview topics: WSGI, app context, g object, request context, Blueprints, before_request.
Flask Interview Topics
- Flask vs Django — Flask is micro (bring your own tools); Django is batteries-included
- Application context — g, current_app; pushed when handling request
- Request context — request, session; active per HTTP request
- WSGI — Python web standard; Flask implements it via Werkzeug
- Blueprint — modular route grouping for large apps
- before_request / after_request — request lifecycle hooks
- g object — temporary storage within a single request lifecycle
- threadsafe — Flask uses LocalProxy for thread-safe context locals
Topic Quiz · 2 questions
Test your understanding before moving on
1. What is WSGI?
💡 WSGI (PEP 3333) defines how Python web apps interface with servers like Gunicorn.
2. What does "micro" in micro-framework mean?
💡 Micro means Flask does not include an ORM, form library, or admin.