I am just learning how to use python and GAE, and I noticed that the main URL handler is shown in two different ways. What is the difference when calling run_wsgi_app vs wsgiref.handlers.CGIHandler? I saw an example of code shown in both ways.
application = webapp.WSGIApplication( [ ('/', MainPage), ('/sign', Guestbook) ], debug = True) wsgiref.handlers.CGIHandler().run(application)
vs
application = webapp.WSGIApplication( [ ('/', MainPage), ('/sign', Guestbook) ], debug = True) def main(): run_wsgi_app(application)
source share