Hi, I'm new here and to describe myself as a Python Novice would be 
overstating my abilities but would really like some help if possible. My 
website was loading using Python 2.5 but I can't work out the code to use 
for 2.7. I found this helpful main.py example: but I need to load my HTML 
(all nicely stored in a folder on my PC) rather than just a simple message 
per this. Can anyone help? Thanks.

import webapp2

class MainPage(webapp2.RequestHandler):
  def get(self):
    self.response.headers['Content-Type'] = 'text/plain'
    self.response.out.write('Hello, WebApp World!')

app = webapp2.WSGIApplication([('/', MainPage)])

""" Old code:
def main():
  run_wsgi_app(app)

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

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fc5e5e40-a641-4b2b-938f-956c6a77669d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... 'White Light Band' via Google App Engine

Reply via email to