bessgoogleapp-step1.py

A simple page with a title. No application logic yet.

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class MainPage(webapp.RequestHandler):
    def get(self):
        self.response.out.write('<h1>Welcome to the BESS cloud tutorial!</h1>')

application = webapp.WSGIApplication(
                                     [('/', MainPage)],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
back

 
Last generated on 17 Sep 2015       francois.taiani@irisa.fr     Valid HTML 4.0!