0

I have a simple Hello World application in Python that i'm using with AppEngine, but i want to insert this in a HTML file, like this: I have a file called test.html and on it i have this snippet:

<center><img src="test.png></center>
// Here comes the Python App //

I want to put the output of the Python application in this space, like i can do with Servlets(Java).

Regards.

Nathan Campos
  • 28,769
  • 59
  • 194
  • 300

3 Answers3

4

You should work through the getting started docs at the AppEngine site. Specifically around templates: http://code.google.com/appengine/docs/python/gettingstarted/templates.html.

Joe Beda
  • 2,743
  • 1
  • 19
  • 16
2

Use the Django templates - the module comes built in with the app engine. I've used it here on line 42. The template used is here.

Sudhir Jonathan
  • 16,998
  • 13
  • 66
  • 90
1

I would really recommend using a boilerplate template https://github.com/coto/gae-boilerplate This would give you the layout and template structure for developing useful and professional sites