Vee Why
unread,Nov 15, 2008, 6:56:40 PM11/15/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
I am a complete novice at using python, but can someone help me.
I want to load a Index.html home page to my Google App Engine page
using python.
based on the Google App Engine tutorial, I have this python script,
but want the page to load a HTML file called 'index.html', what do I
do?
My Python script
************************************
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.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
application = webapp.WSGIApplication(
[('/', MainPage)],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
************************************