def get(self, *args, **kwargs): cmd = self.get_query_argument("cmd", "no") if cmd == 'flushdb': Mydb.flushdb() else: self.write("hello")