'Read configuration from object.
Object is either an actual object or the name of a module to import.
Example:
>>> celery.config_from_object(\'myapp.celeryconfig\')
>>> from myapp import celeryconfig
>>> celery.config_from_object(celeryconfig)
Arguments:
silent (bool): If true then import errors will be ignored.
force (bool): Force reading configuration immediately.
By default the configuration will be read only when required.'

def config_from_object(self, obj, silent=False, force=False, namespace=None):

    self._config_source = obj
    self.namespace = (namespace or self.namespace)
    if (force or self.configured):
        self._conf = None
        if self.loader.config_from_object(obj, silent=silent):
            return self.conf
