JSON serialization of Google App Engine models

后端 未结 14 2116
不知归路
不知归路 2020-12-04 04:59

I\'ve been searching for quite a while with no success. My project isn\'t using Django, is there a simple way to serialize App Engine models (google.appengine.ext.db.Model)

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 05:41

    If you use app-engine-patch it will automatically declare the _meta attribute for you, and then you can use django.core.serializers as you would normally do on django models (as in sledge's code).

    App-engine-patch has some other cool features such has an hybrid authentication (django + google accounts), and the admin part of django works.

提交回复
热议问题