def get(self, pid): try: Page.del_page(pid) except Exception as e: print str(e) self.redirect('/admin/page')