HI Alen,
It should be self.response.write(html) instead of self.render(html).
you can go through the Hello
World<https://developers.google.com/appengine/docs/python/gettingstartedpython27/helloworld>examples
in the docs to know more.
Regards
Anbarasan
On Wed, Jul 24, 2013 at 3:31 AM, Alen Masic <[email protected]> wrote:
> Hello
>
> I developed app using html5 and php. Since php is not yet fully supported
> on google app engine I would like to change my php code to python because I
> have 8 lines of php code. Problem is, I'm total noob with python. I'm used
> to make index.html and that run fine with php, but when I try to run
> index.html with python then I get blank page. Can someone explain how to
> run html5 document with python on google app engine. This is what I tried:
>
> html = """
>
> here goes my site
>
> """;
> import webapp2
> class MainHandler(webapp2.RequestHandler):
> def get(self):
> self.render(html);
>
> app = webapp2.WSGIApplication([
> ('/', MainHandler)], debug=True)
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.