Skip to content Skip to sidebar Skip to footer

Running Flask App From Cli Gives "no Module Named Flaskr"

I am trying to run the example flaskr app using the Flask 0.11 cli. However, I get ImportError: no module named flaskr. I have set FLASK_APP and import flaskr works in a Python s

Solution 1:

If you have not installed your app in your virtualenv, add .py at the end of the module name.

export FLASK_APP=flaskr.py

Post a Comment for "Running Flask App From Cli Gives "no Module Named Flaskr""