Created
February 27, 2011 08:16
-
-
Save vitorbal/846012 to your computer and use it in GitHub Desktop.
How to use parts of the url path as variables for a handler in Google App Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment