Flask cli can't import application set with FLASK_APP

前端 未结 2 534
逝去的感伤
逝去的感伤 2021-01-19 06:06

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

2条回答
  •  独厮守ぢ
    2021-01-19 06:38

    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.

提交回复
热议问题