def main():
application = webapp.WSGIApplication([
('/.*', MainHandler)],
debug=True)
wsgiref.handlers.CGIHandler().run(application)
This bit of code is best translated as “Create a new web application, and route all the URLs that come to this application (/.*) to the MainHandler class; once the application has been created and configured with its routing, run the application.”
No comments:
Post a Comment