Advertisement
Guest User

Untitled

a guest
Jun 26th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.83 KB | None | 0 0
  1. #############################################################
  2. # app.yaml                                                  #
  3. #############################################################
  4. application: engineapp-hello-world
  5. version: 1
  6. runtime: python27
  7. api_version: 1
  8. threadsafe: yes
  9.  
  10. handlers:
  11. - url: /favicon\.ico
  12.   static_files: favicon.ico
  13.   upload: favicon\.ico
  14.  
  15. - url: .*
  16.   script: main.app
  17.  
  18. libraries:
  19. - name: webapp2
  20.   version: "2.5.2"
  21.  
  22. #############################################################
  23. # main.py                                                   #
  24. #############################################################
  25. import webapp2
  26.  
  27. class MainHandler(webapp2.RequestHandler):
  28.     def get(self):
  29.         self.response.write('Hello world!')
  30.  
  31. app = webapp2.WSGIApplication([
  32.     ('/', MainHandler)
  33. ], debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement