Skip to content

Instantly share code, notes, and snippets.

View vitorbal's full-sized avatar

Vitor Balocco vitorbal

View GitHub Profile
@vitorbal
vitorbal / gist:846012
Created February 27, 2011 08:16
How to use parts of the url path as variables for a handler in Google App Engine
class RenderMovieShowTimes(webapp.RequestHandler):
def get(self, cityid, movieid):
# cityid and movieid will contain the passed variables
# do something with them
application = webapp.WSGIApplication([ '/([^/]+)/([^/]+)' ])
def main():
run_wsgi_app(application)