Skip to content

Instantly share code, notes, and snippets.

@jgeewax
Created August 25, 2010 02:21
Show Gist options
  • Select an option

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

Select an option

Save jgeewax/548718 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 AboutMeHandler(webapp.RequestHandler):
def get(self):
self.response.out.write('About Me!')
class AboutCompanyHandler(webapp.RequestHandler):
def get(self):
self.response.out.write('About Company!')
application = webapp.WSGIApplication([('/about/me/', AboutMeHandler),
('/about/company/', AboutCompanyHander)],
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