I have a Class User
class User(db.Model):
userId = db.StringProperty()
email = db.StringProperty()
channelToken = db.StringProperty()
user = User(key_name='1',userId='1',email='abc@gmail.com',channelToken='123')
user.put()
channelToken= db.GqlQuery("SELECT channelToken FROM User WHERE userId=1")
logging.info("Found Channel : " + str(channelToken))
<google.appengine.ext.db.GqlQuery object at 0xfe112370>" is not a string.
Referring https://cloud.google.com/appengine/docs/python/datastore/gqlqueryclass#GqlQuery
q = db.GqlQuery("SELECT channelToken FROM User WHERE userId=1")
channelToken = q.get()
The logging was giving a memory location because GqlQuery returns an object.