Thanks Yannick - I'll do that. Much appreciated.

On Wednesday, 31 May 2017 21:25:27 UTC+1, Yannick (Cloud Platform Support) 
wrote:
>
>  Hey there and welcome. Note that this forum is intended for general 
> discussion on App Engine and that the best way to get answers to your 
> specific technical questions is to post them to Stack Overflow 
> <https://stackoverflow.com/> using appropriate tags from the list of tags 
> <https://cloud.google.com/support/docs/stackexchange> monitored by our 
> community technical team. Should you post there, be sure to detail what 
> you’re trying to accomplish. Feel free to post a link to your question 
> here to help direct answers to the right place.
>
>  
>
> The code sample you’re using lets you generate responses to GET requests 
> programmatically but it might not scale well if your goal is just to create 
> a simple website that serves static html content; If that’s your intent, 
> you should check out this guide on hosting a static website 
> <https://cloud.google.com/appengine/docs/standard/python/getting-started/hosting-a-static-website>.
>  
> If you want to build a dynamic Python web application, this tutorial on 
> creating 
> a guestbook application 
> <https://cloud.google.com/appengine/docs/standard/python/getting-started/creating-guestbook>
>  
> is a good place to start.
>
>
> On Wednesday, May 31, 2017 at 9:16:26 AM UTC-4, White Light Band wrote:
>>
>> 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/cf74731b-bb4f-4cbf-aab2-fcde3e21a987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... 'White Light Band' via Google App Engine
    • [google-appe... 'Yannick (Cloud Platform Support)' via Google App Engine
      • [google-... 'White Light Band' via Google App Engine

Reply via email to