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)
webapp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
webapp etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
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.
Kaydol:
Kayıtlar
(
Atom
)