Python and google app engine datastore issue
I am attempting to store data via python on the datastore.. but i am not succeeding.
I have looked at the documentation but still cannot manage to get my app working.
I have the following code which should define some data. put it to the appspot domain. and some django which should display the data(but uncertain as how to do this).
from google.appengine.ext import db
# A Model for a User
name = db.StringProperty()
pname = self.request.get('name')
self.session['pokemon'] = pname
que = db.Query(Pokemondata)
poke_list = que.fetch(limit=5)
Page = """
<h1>%s's App Engine App</h>
application = webapp.WSGIApplication([('/', User),
('/json', ApplyHandler)], debug=True)
if __name__ == "__Addlist__":
I am unsure as how to display the data. Any advice would be appreicated
It is very hard to follow your code as there is no indentation. However as this is a WSGI server, a response is done with the
I would suggest working through a few WSGI tutorials. Once you understand them adding a datastore should be simple.