old_contents: #!/usr/bin/env python
  import logging
  import os
  from aiocache import RedisCache
  
  # Search engine
  URL_PHONE = 'https://m.baidu.com/s'
  URL_PC = 'http://www.baidu.com/s'
  BAIDU_RN = 15
  SO_URL = "https://www.so.com/s"
  
  USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36'
  
  # logging
  # logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s: %(message)s')
  # LOGGER = logging.getLogger('owllook')
  logging_format = "[%(asctime)s] %(process)d-%(levelname)s "
  logging_format += "%(module)s::%(funcName)s():l%(lineno)d: "
  logging_format += "%(message)s"
  
  logging.basicConfig(
      format=logging_format,
      level=logging.DEBUG
  )
  LOGGER = logging.getLogger()
  
  # aiocache
  REDIS_DICT = dict(
      IS_CACHE=True,
      REDIS_ENDPOINT="",
      REDIS_PORT=6379,
      PASSWORD="",
      CACHE_DB=0,
      SESSION_DB=1,
      POOLSIZE=10,
  )
  AIO_CACHE = RedisCache(endpoint=REDIS_DICT['REDIS_ENDPOINT'], port=REDIS_DICT['REDIS_PORT'], namespace="main")
  
  # mongodb
  MONGODB = dict(
      HOST="",
      PORT="",
      USERNAME='',
      PASSWORD='',
      DATABASE='owllook',
  )
  
  # website
  WEBSITE = dict(
      IS_RUNNING=True,
      TOKEN=''
  )
  
  AUTH = {
      "Owllook-Api-Key": ""
  }
  
  HOST = ['127.0.0.1:8001', '0.0.0.0:8001']
  
  TIMEZONE = 'Asia/Shanghai'
  
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
new_contents: #!/usr/bin/env python
  import logging
  import os
  from aiocache import RedisCache
  
  # Search engine
  URL_PHONE = 'https://m.baidu.com/s'
  URL_PC = 'http://www.baidu.com/s'
  BAIDU_RN = 15
  SO_URL = "https://www.so.com/s"
  
  USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36'
  
  # logging
  # logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s: %(message)s')
  # LOGGER = logging.getLogger('owllook')
  logging_format = "[%(asctime)s] %(process)d-%(levelname)s "
  logging_format += "%(module)s::%(funcName)s():l%(lineno)d: "
  logging_format += "%(message)s"
  
  logging.basicConfig(
      format=logging_format,
      level=logging.DEBUG
  )
  LOGGER = logging.getLogger()
  
  # aiocache
  REDIS_DICT = dict(
      IS_CACHE=True,
      REDIS_ENDPOINT="localhost",
      REDIS_PORT=6379,
      PASSWORD=None,
      CACHE_DB=0,
      SESSION_DB=1,
      POOLSIZE=10,
  )
  AIO_CACHE = RedisCache(endpoint=REDIS_DICT['REDIS_ENDPOINT'], port=REDIS_DICT['REDIS_PORT'], namespace="main")
  
  # mongodb
  MONGODB = dict(
      HOST="",
      PORT="",
      USERNAME='',
      PASSWORD='',
      DATABASE='owllook',
  )
  
  # website
  WEBSITE = dict(
      IS_RUNNING=True,
      TOKEN=''
  )
  
  AUTH = {
      "Owllook-Api-Key": ""
  }
  
  HOST = ['127.0.0.1:8001', '0.0.0.0:8001']
  
  TIMEZONE = 'Asia/Shanghai'
  
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
subject: 修复aiocache 初始化的时候 PASSWORD 为 ''的时候初始化失败的问题