I am trying to use google appengine. I have this model:
def Human(db.Model):
 name = db.StringProperty()
 friends = db.SelfReferenceProperty()
This Human has more than one friend. So, how开发者_JAVA百科 to handle this with google appengine?
For simple many-to-many relationships, use a ListProperty with a list of keys.
If you need to store additional metadata, give the model its own relationship, e.g. Friendship.
Examples of both can be found @ http://code.google.com/appengine/articles/modeling.html
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论