flask.cli.NoAppException: Could not import “flaskr.flaskr”

I think you are in the wrong folder. You probably did:

cd flask_tutorial/flaskr

You need to go up to the tutorial folder:

cd ..

You should flask run in the flask_tutorial folder rather than flask_tutorial/flaskr because you want to import flaskr from that folder, not flaskr/flaskr (which doesn’t exist).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)