def _load_config(self):
        """
        Load the configuration from the Flask configuration.
        """
        options = dict()

        job_stores = self.app.config.get('SCHEDULER_JOBSTORES')
        if job_stores:
            options['jobstores'] = job_stores

        executors = self.app.config.get('SCHEDULER_EXECUTORS')
        if executors:
            options['executors'] = executors

        job_defaults = self.app.config.get('SCHEDULER_JOB_DEFAULTS')
        if job_defaults:
            options['job_defaults'] = job_defaults

        timezone = self.app.config.get('SCHEDULER_TIMEZONE')
        if timezone:
            options['timezone'] = timezone

        self._scheduler.configure(**options)

        self.auth = self.app.config.get('SCHEDULER_AUTH', self.auth)
        self.api_enabled = self.app.config.get('SCHEDULER_VIEWS_ENABLED', self.api_enabled)  # for compatibility reason
        self.api_enabled = self.app.config.get('SCHEDULER_API_ENABLED', self.api_enabled)
        self.api_prefix = self.app.config.get('SCHEDULER_API_PREFIX', self.api_prefix)
        self.endpoint_prefix = self.app.config.get('SCHEDULER_ENDPOINT_PREFIX', self.endpoint_prefix)
        self.allowed_hosts = self.app.config.get('SCHEDULER_ALLOWED_HOSTS', self.allowed_hosts)
def _load_config ( self ) : options = dict ( ) job_stores = self . app . config . get ( 'SCHEDULER_JOBSTORES' ) if job_stores : options [ 'jobstores' ] = job_stores executors = self . app . config . get ( 'SCHEDULER_EXECUTORS' ) if executors : options [ 'executors' ] = executors job_defaults = self . app . config . get ( 'SCHEDULER_JOB_DEFAULTS' ) if job_defaults : options [ 'job_defaults' ] = job_defaults timezone = self . app . config . get ( 'SCHEDULER_TIMEZONE' ) if timezone : options [ 'timezone' ] = timezone self . _scheduler . configure ( ** options ) self . auth = self . app . config . get ( 'SCHEDULER_AUTH' , self . auth ) self . api_enabled = self . app . config . get ( 'SCHEDULER_VIEWS_ENABLED' , self . api_enabled ) self . api_enabled = self . app . config . get ( 'SCHEDULER_API_ENABLED' , self . api_enabled ) self . api_prefix = self . app . config . get ( 'SCHEDULER_API_PREFIX' , self . api_prefix ) self . endpoint_prefix = self . app . config . get ( 'SCHEDULER_ENDPOINT_PREFIX' , self . endpoint_prefix ) self . allowed_hosts = self . app . config . get ( 'SCHEDULER_ALLOWED_HOSTS' , self . allowed_hosts )
Load the configuration from the Flask configuration.