Following the Flask 0.11 documentation, I cloned the Flask repo, created a virtualenv, and installed Flask via pip install flask
. I went into the example
Flask issue for the eclipse and PyDev extension, you can set a path like this. Flask 1.0.2 and Python 3.6 already installed on Windows 10.
flask.cli.NoAppException
flask.cli.NoAppException: module 'src' has no attribute 'Hello'
Run Flask in proper folder path to resolve this issue.
I was setting FLASK_APP=flaskr
. Since I hadn't installed my app as a package in my virtualenv, I needed to add the .py
extension.
export FLASK_APP=flaskr.py