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))