def __init__(self):
tornado.web.Application.__init__(self, url_patterns, **settings)
self._redis = _db.redis_client
self._motor = get_mongodb(CONFIG.MONGO.DATABASE, client='motor')
connect(CONFIG.MONGO.DATABASE, host=CONFIG.MONGO.HOST,
port=CONFIG.MONGO.PORT,
io_loop=tornado.ioloop.IOLoop.current()) # motorengine
评论列表
文章目录