<filename>briq/briq/database/mongo_setup.py
import mongoengine
from settings import DB_ALIAS, DB_NAME

def global_init():
    mongoengine.register_connection(alias=DB_ALIAS, name=DB_NAME)
<filename>briq/briq/database/mongo_setup.py
import mongoengine
from settings import DB_ALIAS, DB_NAME

def global_init():
    mongoengine.register_connection(alias=DB_ALIAS, name=DB_NAME)