Flask app wont start

flask.cli.NoAppException: Failed to find Flask application or factory in module "hello". Use "FLASK_APP=hello:name to specify one.

http://flask.pocoo.org/ - I followed these instructions

Anyone have this problem before?

@alkapwn3d We need to see your code. It looks like it is looking for a file or module that is not there. Check carefully for syntax errors.

click the link and see the instructions. thats exactly what i have and did

Can we see your code?

1 Like

Go to the folder where app.py is present and run python app.py

i think you did not set the environment variable of your flask app. flask doesn’t know which file to run ?

specify FLASK_APP=“app.py”

1 Like