Skip to content
Discussion options

You must be logged in to vote

It turns out, a Flask app started that way does not automatically load environment variables from .env. I found only non-official article alluding to that (which was written one year after the original issue posted above). Nonetheless, nowadays, the recommended way to start a Flask application is flask run ... for example flask run -h localhost.

Replies: 1 comment

Comment options

rayluo
Apr 21, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by rayluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant