Skip to content

Instantly share code, notes, and snippets.

@jgeewax
Created August 22, 2010 16:32
Show Gist options
  • Select an option

  • Save jgeewax/543960 to your computer and use it in GitHub Desktop.

Select an option

Save jgeewax/543960 to your computer and use it in GitHub Desktop.
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class MainPage(webapp.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
application = webapp.WSGIApplication([('/', MainPage)],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment