def user_exists(self, username):
""" validates that the user exists in the database """
username_exists = db.GqlQuery("SELECT * "
"FROM User "
"WHERE username = :usernm",
usernm=username).get()
return username_exists
评论列表
文章目录