I am building a website using App Engine and weird thing just happened. There is boolean variable that I used in one of my databases
class UserTable(db.Expando):
isVerified = db.BooleanProperty()
in next few lines, I am going to change its value from the default false to true by typing this
TheUser = UserTable.get_by_key_name(Theusername)
logging.info(TheUser.isVerified)
TheUser.isVerified = True
logging.info(TheUser.isVerified)
Then my log files showed that the value had been changed, but the GUI datastore viewer said the other way, it was still false as if nothing had happened. Any idea why? thank you
See the datastore intro docs. You need to put the entity to save it after making your changes.