Additional Section for Appengine

I have already said, mixing different languages in a single code is a bad practice. So the html section is done in a different code section. And it is called using the templates. The html section contain the code for displaying the output on a GET request and refreshing the page. I’ve created a link named ‘REFRESH’, on clicking it the page is refreshed and new entry to the database is seen.
  • <a href= “JavaScript:location.reload(true)”>REFRESH</a>

The displaying section uses the template language Django.

  • {% for each in store%}
  • <b>Place:{{}}<br/></b>
  • <i>Sequence:{{each.sequence}}<br/></i>
  • {% endfor %}
There is another small code section which define which code is to run along with appengine server. This is defined in a code section named ‘app.yaml’. It contain the name of the folder in which our appengine code lies, the codes to run in response to each url request like ‘/’, ‘/display’, etc.
  • application: version5
  • version: 1
  • runtime: python
  • api_version: 1

  • handlers:
  • – url: /
  • script:
  • – url: /display
  • script:

‘Version5’ is the name of the containing folder and ‘’ is the code section in response to ‘/’ and ‘/display’.


About Odol Shinu

I've completed my B Tech in Information Technology in 2010 from Government Engineering College Sreekrishnapuram Palakkad under Calicut University.

Posted on September 12, 2010, in Appengine/RFID Reader Project. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: