

def configure_from_settings(self, settings):
    self.charset = settings.FILE_CHARSET
    self.autorefresh = settings.DEBUG
    self.use_finders = settings.DEBUG
    if settings.DEBUG:
        self.max_age = 0
    for attr in self.config_attrs:
        settings_key = 'WHITENOISE_{0}'.format(attr.upper())
        try:
            setattr(self, attr, getattr(settings, settings_key))
        except AttributeError:
            pass
    self.static_prefix = get_path_from_url(getattr(settings, 'STATIC_URL', ''))
    self.static_root = getattr(attr, 'STATIC_ROOT', None)

dataset/ETHPy150Open evansd/whitenoise/whitenoise/django.py DjangoWhiteNoise.configure_from_settings/VarMisuse@122/160 `settings`->`attr`