How realpython/flask-boilerplate works
This repository is a Flask starter application, with a root-level app and a second, factory/blueprint-based version under _updated/. The main user workflow is visiting a page or account-form route and receiving a rendered template; the forms define input fields and validation but do not implement account persistence or authentication. The README also advertises Flask-SQLAlchemy and Bootstrap scaffolding. Source excerpts show SQLAlchemy commented out in the root app; detailed storage behavior and template-to-asset wiring are not established here.
Main entry points: app.py Flask routes · pages.py Page routes · __init__.py App factory · run.py Run entry point
Components 13
Root Flask app
- Flask routes
app.py - App configuration
config.py
Updated Flask app
- Run entry point
_updated/run.py - App factory
_updated/app/__init__.py - Page routes
_updated/app/controllers/pages.py - Development config
_updated/config/development
Forms and presentation
- Account forms
forms.py - Page templates
templates - Bootstrap assets
static - Account forms
_updated/app/forms.py - Page templates
_updated/app/templates - Bootstrap assets
_updated/app/static
Other components
- Browser visitor
Connections 12
- Browser visitor → Flask routes: requests pages
README.md - Flask routes → App configuration: loads config
app.py - Flask routes → Account forms: imports forms
app.py - Flask routes → Page templates: renders pages
app.py - Flask routes → Page templates: renders errors
app.py - Run entry point → App factory: creates app
_updated/run.py - Run entry point → Development config: selects config
_updated/run.py - App factory → Development config: loads config
_updated/app/__init__.py - App factory → Page routes: registers blueprint
_updated/app/__init__.py - Browser visitor → Page routes: requests pages
- Page routes → Account forms: imports forms
_updated/app/controllers/pages.py - Page routes → Page templates: renders pages
_updated/app/controllers/pages.py