简体   繁体   English

有没有更高级的教程在Google AppEngine上使用python?

[英]Is there any more advanced tutorial for using python on Google AppEngine?

I'm looking for a tutorial that begins where the official tutorial ends. 我正在寻找一个从官方教程结束的教程开始。 In other words a more comprehensive tutorial on Python + Google AppEngine + webapp2 换句话说,有关Python + Google AppEngine + webapp2的更全面的教程

Any tips much appreciated! 任何提示非常感谢!

You can take a look at the webapp improved documentation . 您可以查看webapp改进的文档 Also, there is the book 'Programming Google App Engine', which its 2nd edition is supposed to be ready in October (see its webpage for details). 此外,还有“Programming Google App Engine”这本书,其第2版本应该在10月份准备好了(详见其网页 )。

As for webapp2, try looking at http://blog.notdot.net/2011/11/Migrating-to-Python-2-7-part-2-Webapp-and-templates (and basically anything by Nick Johnson). 至于webapp2,请尝试查看http://blog.notdot.net/2011/11/Migrating-to-Python-2-7-part-2-Webapp-and-templates (基本上是Nick Johnson的任何内容)。 EDIT: Sebastian Kreft's suggestion is more what you want, I'm guessing. 编辑:塞巴斯蒂安克雷夫特的建议更多你想要的,我猜。 But still read Nick's stuff :) 但仍然读尼克的东西:)

As for a more advanced tutorial, a cop-out answer (that I'll recommend) is just reading the docs and trying stuff out yourself. 至于更高级的教程,一个cop-out答案(我建议)只是阅读文档并自己尝试。 For instance, reading through this (same docs, just further down the left-nav) will give you an overview of the variety of services/api/etc. 举例来说,通过阅读 (同一个文档,只是进一步下跌的左侧导航)会给你的各种服务/ API /等的概述。 that are available in the SDK. SDK中提供的内容。 I'm as far from an expert as you'll find, but doing that (in combination with creating my own problems and solving with the help of the people on this site) will definitely help you learn. 我和你找到的专家一样远,但这样做(结合创造我自己的问题并在本网站上的人的帮助下解决)肯定会帮助你学习。

This is not using webapp2, but at this python codelab is similar to the guestbook tutorial, but with 2 extras sections showing how to use other App Engine API like: 这不是使用webapp2,但是在这个python中 ,codelab类似于留言簿教程,但有2个额外部分显示了如何使用其他App Engine API:

  • Memcache 内存缓存
  • Mail API 邮件API
  • Channel API 渠道API

And a standalone exercise at the end showing: 最后一个独立的练习显示:

  • UrlFetch, 网址抓取,
  • Cron 克龙
  • Task Queues 任务队列

This tutorial series is also quite nice because it shows how to properly structure your code using webapp2. 本教程系列也非常好,因为它展示了如何使用webapp2正确构建代码。 Downside is that db(old standard) is used instead of ndb(new standard). 缺点是使用db(旧标准)而不是ndb(新标准)。

http://tutorialzine.com/2011/01/getting-started-with-google-app-engine/ http://tutorialzine.com/2011/01/getting-started-with-google-app-engine/

Google have done a ton of work since the webapp days. 自webapp时代以来,Google已经做了大量的工作。

In late 2016, starting from scratch with a new project on Google Cloud/App Engine, you can now step through a tutorial which clones a quickstart project for you and then runs it from the gloud console. 在2016年末,从头开始,在Google Cloud / App Engine上开设一个新项目,您现在可以逐步完成一个教程,为您克隆一个快速入门项目 ,然后从gloud控制台运行它。

This can be referenced at https://cloud.google.com/appengine/docs/python/quickstart . 可以在https://cloud.google.com/appengine/docs/python/quickstart上参考。 It is essentially a Python Flask 0.10 project and all the Flask components are placed in a /lib directory. 它本质上是一个Python Flask 0.10项目,所有Flask组件都放在/ lib目录中。

There is also a tutorial for the Beta release of the Flexible Environment at https://cloud.google.com/python/getting-started/hello-world . 还有一个关于灵活环境Beta版的教程,请访问https://cloud.google.com/python/getting-started/hello-world In the notes they reference a number of frameworks in addition to Flask, specifically Django, Pyramid, Bottle, Tornado and of course web.py 在笔记中,他们引用了除Flask之外的一些框架,特别是Django,Pyramid,Bottle,Tornado,当然还有web.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM