📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Flask Web Framework Flask Project Layout

Flask Project Layout

4 min read
Structure a production Flask app: blueprints, models, services, migrations, tests, Dockerfile.

Production App Layout

my_app/
├── app/
│   ├── __init__.py          # create_app() factory
│   ├── extensions.py        # db, migrate, login_manager
│   ├── models/
│   ├── blueprints/
│   │   ├── auth/
│   │   ├── main/
│   │   └── api/
│   ├── services/
│   ├── templates/
│   └── static/
├── migrations/
├── tests/
├── config.py
├── requirements.txt
└── run.py