我使用pip
在Anaconda环境中安装了Chanjo Report项目。 README显示了Web前端的屏幕截图。代码中有一个Flask应用程序,但没有明显的方法来运行它。我该如何启动应用程序?
更新
(pytools)chanjo-report ➤ python manage.py
Traceback (most recent call last):
File "manage.py", line 7, in <module>
app = create_app()
File "~/chanjo_report/server/app.py", line 18, in create_app
configure_extensions(app)
File "~/chanjo_report/server/app.py", line 34, in configure_extensions
api.init_app(app)
File "~/anaconda/envs/pytools/lib/python2.7/site-packages/chanjo/store/api.py", line 48, in init_app
uri = app.config["{}URI".format(key_base)]
KeyError: 'CHANJO_URI'
(pytools)chanjo-report ➤ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 7, in <module>
app = create_app()
File "~/chanjo_report/server/app.py", line 18, in create_app
configure_extensions(app)
File "~/chanjo_report/server/app.py", line 34, in configure_extensions
api.init_app(app)
File "~/anaconda/envs/pytools/lib/python2.7/site-packages/chanjo/store/api.py", line 48, in init_app
uri = app.config["{}URI".format(key_base)]
KeyError: 'CHANJO_URI'
答案 0 :(得分:0)
该项目包含一个manage.py
文件,该文件使用Flask-Script运行命令以使用Flask应用程序。
python manage.py runserver
此文件不包含在已安装版本的入口点中,因此您需要下载项目并从那里运行它。下载后,您仍可以使用pip install -e .
安装项目。