Framework support
Dotvault for Flask
Dotvault for Flask apps.
Flask reads .env through python-dotenv, so the file is loaded before your app ever sees it and a typo shows up as a confusing runtime error rather than a config one. Dotvault gives you a visual editor for the file, and flags SECRET_KEY when it is missing, because a Flask app that uses sessions falls over without it.
What you get
- →Detects Flask from requirements.txt or pyproject.toml.
- →Recognises the FLASK_APP entry point and warns when SECRET_KEY is missing.
- →Knows the FLASK_RUN_ family for the dev server, plus DATABASE_URL and SQLALCHEMY_DATABASE_URI.
- →Snapshot history and diff across your development and production files.
Known environment variables
Dotvault recognises these variables when you open a Flask project and surfaces helpful descriptions and warnings in the editor. Flask is detected via flask in requirements.txt or pyproject.toml.
FLASK_APPFlask application entry point
FLASK_ENVFlask environment (development/production)
FLASK_DEBUGDebug mode toggle
FLASK_RUN_HOSTDev server host
FLASK_RUN_PORTDev server port
FLASK_RUN_CERTSSL certificate for HTTPS dev server
FLASK_RUN_KEYSSL key for HTTPS dev server
SECRET_KEYRequiredSession secret key
DATABASE_URLDatabase connection URL
SQLALCHEMY_DATABASE_URISQLAlchemy database connection URI
Official Flask docs: flask.palletsprojects.com