

def get_qiniu_config(name, default=None):
    '\n    Get configuration variable from environment variable\n    or django setting.py\n    '
    config = os.environ.get(default, getattr(settings, name, default))
    if (config is not None):
        if isinstance(config, six.string_types):
            return config.strip()
        else:
            return config
    else:
        raise ImproperlyConfigured(("Can't find config for '%s' either in environmentvariable or in setting.py" % name))

dataset/ETHPy150Open glasslion/django-qiniu-storage/qiniustorage/backends.py get_qiniu_config/VarMisuse@24/56 `name`->`default`