code: def add(self, title=''):
          '''
          Add wiki
          '''
  
          post_data = self.get_post_data()
  
          if title == '':
              pass
          else:
              post_data['title'] = title
          post_data['user_name'] = self.get_current_user()
          if MWiki.get_by_wiki(post_data['title']):
              pass
          else:
              MWiki.create_wiki(post_data)
  
          tornado.ioloop.IOLoop.instance().add_callback(self.cele_gen_whoosh)
          # cele_gen_whoosh.delay()
  
          self.redirect('/wiki/{0}'.format(tornado.escape.url_escape(post_data['title']))f add(self, title=''):
          '''
          Add wiki
          '''
  
          post_data = self.get_post_data()
  
          if title == '':
              pass
          else:
              post_data['title'] = title
          post_data['user_name'] = self.get_current_user()
          if MWiki.get_by_wiki(post_data['title']):
              pass
          else:
              MWiki.create_wiki(post_data)
  
          tornado.ioloop.IOLoop.instance().add_callback(self.cele_gen_whoosh)
          # cele_gen_whoosh.delay()
  
          self.redirect('/wiki/{0}'.format(tornado.escape.url_escape(post_data['title'])))
docs: Add wiki