this is my code in main.py
class marker_data(db.Model):
geo_pt = db.GeoPtProperty()
class HomePage(BaseRequestHandler):
def get(self):
a=marker_data()
a.geo_pt=db.GeoPt(-34.397, 150.644)
a.put()
datas=marker_data.all()
self.render_template('3.1.html',{'datas':datas})
and in the html is :
{% for i in datas %}
console.log(i)
{% endfor %}
but the error is:
i is not defined
so what can i do ?
thanks