How do I get user key? I am trying like this
user = User.get_by_auth_id('k')
print user.key
Its displaying 1. But that key entity is very long.
I am looking for ag5kZXZ......

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
are you using google.appengine.ext.db or google.appengine.ext.ndb ?
if your are using the standard db module it should be
i think with ndb your could get it with: