【文件属性】:
文件名称:FlaskIntroduction:在freeCodeCamp.org上回购我的教程
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-01 22:09:02
HTML
烧瓶介绍
此存储库已更新为可与Python v3.8及更高版本一起使用。
怎么跑
安装virtualenv :
$ pip install virtualenv
在项目根目录中打开一个终端,然后运行:
$ virtualenv env
然后运行命令:
$ .\env\Scripts\activate
然后安装依赖项:
$ (env) pip install -r requirements.txt
最后启动Web服务器:
$ (env) python app.py
默认情况下,该服务器将在端口5000上启动。 您可以通过将以app.py更改为app.py来进行更改:
if __name__ == "__main__" :
app . run ( debug = True , port = < desired> )
【文件预览】:
FlaskIntroduction-master
----app.py(2KB)
----requirements.txt(152B)
----Procfile(21B)
----README.md(654B)
----test.db(8KB)
----templates()
--------index.html(1KB)
--------update.html(442B)
--------base.html(384B)
----.gitignore(16B)
----static()
--------css()