import pymongo
import sys
import os
sys.path.append(os.path.split(os.path.realpath(__file__))[0]+"/../../")
from Config import ProductionConfig
db_conn = pymongo.MongoClient(ProductionConfig.DB, ProductionConfig.PORT)
na_db = getattr(db_conn, ProductionConfig.DBNAME)
na_db.authenticate(ProductionConfig.DBUSERNAME, ProductionConfig.DBPASSWORD)
NA_INFO = na_db.Info
NA_HISTORY = na_db.History

 

相关文章:

  • 2021-07-25
  • 2021-12-08
  • 2021-07-13
  • 2021-12-22
  • 2021-08-08
  • 2022-12-23
  • 2021-10-10
猜你喜欢
  • 2021-08-22
  • 2021-08-15
  • 2021-05-24
  • 2021-11-21
  • 2021-07-11
相关资源
相似解决方案