Search across all documentation pages
12 pages in this section.
Flask's two foundational ideas - a thin WSGI application, and context-local proxies that make request-scoped globals like request and g feel like ordinary imports - and how those two ideas explain the rest of the framework.
Learn Flask 3.1 basics with 9 examples covering minimal apps, routing, HTTP methods, query parameters, and JSON request bodies.
Structure larger Flask 3.1 applications using application factories and blueprints. Learn when to use them and see working code examples.
Integrate SQLAlchemy, Migrate, and Login with Flask extensions. Learn to set up and manage extensions, understand their lifecycle, and avoid common pitfalls.
Learn about Flask's app and request contexts, how to use g for per-request state, and manage before_request and teardown_request hooks.
Learn to render HTML using Jinja2 templates in Flask, including inheritance, blocks, autoescaping, and how to avoid common pitfalls.
Build REST APIs with Flask, Pydantic, and flask-smorest. Learn to validate JSON, generate OpenAPI docs, and handle common API gotchas.
Test Flask applications with pytest, using the test client and application context. Learn to test routes, auth flows, and isolate database transactions.
Compare Flask, FastAPI, and Django to select the best Python web framework for your project. Understand their trade-offs and use cases.
Learn Flask best practices for building testable and production-ready apps. Discover how to structure apps, handle HTTP, manage state, and deploy.
A single-page roundup of every highlight bullet from the 11 pages in the Flask section, grouped by source page so you can scan all 64 takeaways without opening each article individually.