from google appengine ext import webapp from google appengine ext weba

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from firepython.middleware import FirePythonWSGI
from firepython.gaesupport import FirePythonRequestHandler
class MainPage(FirePythonRequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!\n')
raise Exception('shit!')
application = webapp.WSGIApplication([('/', MainPage)],
debug=True)
if __name__ == "__main__":
run_wsgi_app(FirePythonWSGI(application))