Created
July 24, 2015 19:48
-
-
Save hello-josh/4a32e74ea3b39cf2d772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.appengine.ext import ndb | |
from my_models import User | |
id_ = '12345' | |
user = User.get_by_id(id_) | |
print user.Username | |
print user.PhoneNumber | |
user = ndb.Key(User, id_).get() # same as User.get_by_id | |
print user.Username | |
print user.PhoneNumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment