ValueError:Key()には偶数の位置引数が必要です。
私が試してみると:
class MyStorage(ndb.Model):
my_attr = ndb.StringProperty()
my = MyStorage(parent=ndb.Key('mylist'), key_name='myattr', my_attr = 'hello')
私は何が間違っているのですか?
My aim is to store a few MyStorage entities under a parent entity with key 'mylist'. I don't want to attach anything to the parent itself, and neither have I instantiated it, but from the docs I didn't get the impression that was necessary.
How do I persist MyStorage entities the way I describe above correctly?