python expando数据库Django GAE
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python expando数据库Django GAE相关的知识,希望对你有一定的参考价值。
# sample Expando data in models.py class Song(db.Expando): title = db.StringProperty() # sample Expando data in views.py crazy = Song(title='Crazy like a diamond', author='Lucy Sky', publish_date='yesterday', rating=5.0) hoboken = Song(title='The man from Hoboken', author=['Anthony', 'Lou'], publish_date=datetime.datetime(1977, 5, 3)) crazy.last_minute_note=db.Text('Get a train to the station.') crazy.put() hoboken.put() #html output in views.py songs=Song.all() for song in songs: print song.title print song.author print song.publish_date
以上是关于python expando数据库Django GAE的主要内容,如果未能解决你的问题,请参考以下文章
python JSON序列化器/解串器适用于Google App Engine的NDB数据存储区API。该脚本可以处理Model,Expando,PolyModel,Q.
带有异步数据存储的 GridX Tree Expando REST 调用(大型数据集)