We add two more pages for visualisation and upload.
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>')
class VisualisePage(webapp.RequestHandler):
def get(self):
self.response.out.write('<h1>Welcome to the BESS visualise page!</h1>')
class UploadPage(webapp.RequestHandler):
def get(self):
self.response.out.write('<h1>Welcome to the BESS upload page!</h1>')
application = webapp.WSGIApplication(
[('/' , MainPage ),
('/upload', UploadPage),
('/visualise' , VisualisePage )],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
back