def main(): path = timings.start_run() application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG) if users.is_current_user_admin(): application = FirePythonWSGI(application) wsgiref.handlers.CGIHandler().run(application) timings.stop_run(path)
def main(): path = timings.start_run() application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG) if users.is_current_user_admin(): application = FirePythonWSGI(application) # Attempt to fix KeyError: 'CONTENT_TYPE' that is appearing in logs; see: # http://code.google.com/p/googleappengine/issues/detail?id=2040 # wsgiref.handlers.CGIHandler().run(application) run_wsgi_app(application) timings.stop_run(path)
def main(): path = timings.start_run() application = webapp.WSGIApplication(ROUTES, debug=config.DEBUG) wsgiref.handlers.CGIHandler().run(application) timings.stop_run(path)
def main(): path = timings.start_run() application.run() timings.stop_run(path)