def get(self, pid): try: detail = Page.find_by_id(pid) except Exception as e: print str(e) self.render('Admin/Page/edit.html', detail=detail)