I need to store data, the problem is that I only know the name of model which is the same as kind name
class Tasks(ndb.Model):
title = ndb.StringProperty()
If I have the key already I can do
model = ndb.Key(urlsafe=key).get()
model.title = "new tasks"
model.put()
Now I need to store new entities, how do I do that? thanks
or something even more generic, like
You do need to import your models beforehand in both cases.
Or
if
modelsis the python module where your models live.