【文件属性】:
文件名称:app-engine-starter:App Engine项目的基本模板
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-04 14:02:53
flask boilerplate appengine python3 HTML
App Engine入门-Python 3版
在2018年8月,谷歌终于认为适合使用来祝福我们。 再见Python 2和webapp2,再见Python 3和Flask。
内置:
托管在。
用法
首先,转到并创建一个新项目。 然后安装 。
发展
打开一个壳。
pipenv install将Flask pipenv install到虚拟环境(必须已安装 )。
pipenv shell在激活了虚拟环境的情况下打开新的shell。
python main.py以在启动本地开发服务器
部署方式
如果Google Cloud SDK设置为此项目:
在包含“ app.yaml”的目录中打开外壳
运行gcloud app deploy
如果未将Google Cloud SDK设置为此项目,则可以使用
gcloud config set project PROJECT_ID
参考
对
【文件预览】:
app-engine-starter-master
----main.py(448B)
----requirements.txt(13B)
----Pipfile.lock(7KB)
----LICENSE(1KB)
----Pipfile(156B)
----templates()
--------home.html(269B)
--------about.html(144B)
--------404.html(325B)
--------base.html(3KB)
----.gitignore(5B)
----app.yaml(18B)
----readme.md(2KB)
----static()
--------css()
----.gcloudignore(699B)