I am using appengine, webapp2 framework.
I have the following model:
class Match(db.Model):
date_time = db.DateTimeProperty()
team1 = db.StringProperty()
team2 = db.StringProperty()
venue = db.StringProperty()
result = db.IntegerProperty()
Now on the client side, an event makes a post request to one of my views, based on that post request, i want to send json data which easily readable by jQuery/javascript.
What would be the best way of doing it?
in the models:
and in the views: