// app.yaml
application: myapp
version: 1
runtime: python27
api_version: 1
threadsafe: true
...
handlers:
- url: /.*
script: myapp.app
// myapp.py
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, WebApp World!')
app = webapp2.WSGIApplication([('/', MainPage)])