username = self.request.get('username')
groupName = db.GqlQuery("SELECT group FROM Person WHERE name = :1", username).get()
I’m getting error “Parse Error: Expected no additional symbols at symbol group”. What is wrong?
objPerson = Person.get_by_key_name(username) # load
self.response.out.write(str(objPerson))
It returns “None”
GQL != SQL
You can’t select a specific field in GQL (other than
__key__)Also you might want to consider using the buitin key_name to store and retrieve Person entities instead of query for them.