Download - Iniciando con Python y Google App Engine
![Page 1: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/1.jpg)
GDG DevFest Huacho1 de Diciembre, 2012Universidad Faustino Sanchez Carrión
[email protected]://www.gdglima.pe
![Page 5: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/5.jpg)
[email protected]://www.gdglima.pe
![Page 7: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/7.jpg)
Iniciando con python y Google App Engine mi primera web
Hansy Schmitt [email protected]://gplus.to/hschmitt@hansyschmitt
![Page 8: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/8.jpg)
Que es Google App Engine
Partes de una aplicacion de GAE
La nueva era
Hola Mundo en GAE
Desarrollando la aplicacion de alta disponibilidad
Codigo
Agenda
[email protected]://www.gdglima.pe
![Page 9: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/9.jpg)
Que es Google App Engine
●Es una plataforma que te permite desarrollar tus aplicaciones usando la nube de google.
●Las aplicaciones que usan GAE son faciles de mantener y actualizar, usando el SDK de AppEngine disponible en los lenguajes python y java.
[email protected]://www.gdglima.pe
![Page 10: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/10.jpg)
Partes de una aplicacion de GAE
●Tenemos 2 partes importantes:●El archivo app.yaml, que mantiene la configuracion del archivo●Los handlers , que reciben la peticion y devuelven la respuesta al navegador.
[email protected]://www.gdglima.pe
![Page 11: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/11.jpg)
Hola Mundo en GAE
●Para esto crearemos 2 archivos en 1 directorio:●app.yaml que contiene
application: helloworldversion: 1runtime: pythonapi_version: 1
handlers:- url: /.* script: helloworld.py
[email protected]://www.gdglima.pe
![Page 12: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/12.jpg)
helloworld.py
print 'Content-Type: text/plain'print ''print 'Hello, world!'
[email protected]://www.gdglima.pe
![Page 13: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/13.jpg)
Desarrollo de la aplicacion
* Para esto usaremos los siguientes componentes: * Python 2.7 * WebApp2 como framework * Jinja2 como manejador de plantillas. * Memcache como cache de backend. * Handlers personalizados.
[email protected]://www.gdglima.pe
![Page 14: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/14.jpg)
Descarga del codigo de ejemplo
El codigo de ejemplo lo pueden encontrar en:
https://github.com/hschmitt/adtg-demo-blog
[email protected]://www.gdglima.pe
![Page 15: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/15.jpg)
<Preguntas?>
devfestlima.gdglima.pe/#moderator
![Page 16: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/16.jpg)
Google DevRel LatAm South Region
¡PARTICIPA DE LA COMUNIDAD EN ESPAÑOL!
1. Academic Developer TG - ADTG2. Envía tus artículos a LookThisCode.3. Participa de Developers Live en Español.
![Page 18: Iniciando con Python y Google App Engine](https://reader034.vdocumento.com/reader034/viewer/2022052412/5596d2441a28ab161e8b478b/html5/thumbnails/18.jpg)