-
Hi @nickjj , First of all, I would like to congratulate you on flask-db. ( I am also keen to invest in your snakeeyes app!) Thanks in advance for your help. A |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, Setting If you don't set that variable then even running You can choose to use a |
Beta Was this translation helpful? Give feedback.
Hi,
Setting
FLASK_APP
is a requirement of theflask
CLI command not this extension.If you don't set that variable then even running
flask --help
will throw an error offlask.cli.NoAppException: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.
.You can choose to use a
.env
file and have that loaded in withpython-dotenv
(or Docker instead if your app is using it). If you're using systemd you can load in an env file too. This way the user never has to export anything directly. The same goes for any cloud environment like Heroku too.