import webapp2 class MainPageHandler(webapp2.RequestHandler): def get(self): self.response.out.write('Hi!') def post(self): self.response.out.write('this is a post') mappings = [ ('/', MainPageHandler) # any requests made to zerotoae1.appspot.com go here ] app = webapp2.WSGIApplication(mappings)