import motor.motor_asyncio from core import settings client = motor.motor_asyncio.AsyncIOMotorClient(settings.DATABASE_URI) check_template_coll = client.xdata.get_collection('check_template')