Hi,

Make sure you haven't listed your templates as static_dir/static_files in
your app.yaml.  If you have, the templates can't be accessed in the Python
code.

-Marzia

On Sun, Nov 16, 2008 at 5:46 PM, Chenqun Hang <[EMAIL PROTECTED]> wrote:

> try GAE's templates
> http://code.google.com/appengine/docs/gettingstarted/templates.html
>
> 2008/11/16 Vee Why <[EMAIL PROTECTED]>
>
>
>> 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()
>>
>> ************************************
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to