import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
class MyPage(webapp2.RequestHandler):
def get(self):
#Stuff to do
app = webapp2.WSGIApplication([('/', MainPage),
('/mypage',MyPage)],
debug=True)
14 Ağustos 2012 Salı
Google App Engine - Python 2.7 ile WSGI arayüzü
Google App Engine ile uygulama geliştirirken app.yaml ile uğraşılmak istenilmezse Python 2.7 kullanarak WSGI interface'i ile app içine gerekli tanımlar yapılabilir.
Etiketler:
google app engine
,
python
,
webapp
,
wsgi
Kaydol:
Kayıt Yorumları
(
Atom
)
Hiç yorum yok :
Yorum Gönder