user = User(name = "hiroshi", key=db.Key.from_path('User', 3))
In the case of key_name, ʻUser (key_name ='hiroshi') `is fine, but in the case of id, a unique number is usually determined to be sequential, so I don't think it will be used for anything other than testing. http://stackoverflow.com/a/2826051/338986
Recommended Posts