Flask Reference
Deep dives into Flask production concepts, comparisons, and structural references.
This section provides technical references and conceptual deep dives for Flask in production. While the other sections focus on "how-to", the reference section explains the "why" and "how it works".
Use these guides to understand the architecture of your deployment stack, compare different production tools, and establish a clean project structure.
Gunicorn vs Waitress
Compare WSGI servers for Flask and why Gunicorn is the standard for Linux production.
Nginx Reverse Proxy Explained
Deep dive into why Flask needs Nginx and how the reverse proxy flow works.
Static vs Media Files
Clear explanation of the difference between static assets and user-uploaded media.
Production Folder Structure
A recommended layout for Flask projects that separates code, config, and assets.
Config Environments
How to manage different settings for Dev, Staging, and Production.
systemd Basics
Learn how systemd manages your Gunicorn processes and ensures uptime.
Docker Compose Production
Using Docker Compose for orchestrating Flask, PostgreSQL, and Nginx.
Architectural Context
Reference guides are best read when you are planning your infrastructure or debugging a conceptual issue that doesn't have a simple "fix" step. They help you build a mental model of the production environment.