scout/adapter/mongo/base.py
def init_app(self, app):
        """Setup via Flask."""
        host = app.config.get('MONGO_HOST', 'localhost')
        port = app.config.get('MONGO_PORT', 27017)
        dbname = app.config['MONGO_DBNAME']
        log.info("connecting to database: %s:%s/%s", host, port, dbname)
        self.setup(app.config['MONGO_DATABASE'])
def init_app(self, app):
        host = app.config.get('MONGO_HOST', 'localhost')
        port = app.config.get('MONGO_PORT', 27017)
        dbname = app.config['MONGO_DBNAME']
        log.info("connecting to database: %s:%s/%s", host, port, dbname)
        self.setup(app.config['MONGO_DATABASE'])
def init_app ( self , app ) : host = app . config . get ( 'MONGO_HOST' , 'localhost' ) port = app . config . get ( 'MONGO_PORT' , 27017 ) dbname = app . config [ 'MONGO_DBNAME' ] log . info ( "connecting to database: %s:%s/%s" , host , port , dbname ) self . setup ( app . config [ 'MONGO_DATABASE' ] )
Setup via Flask.
Setup via Flask .