'Set the value of setting. Clear all cached values if _wrapped changes
(@override_settings does this) or clear single values when set.'

def __setattr__(self, name, value):

    if (name == '_wrapped'):
        self.__dict__.clear()
    else:
        self.__dict__.pop(name, None)
    super().__setattr__(name, value)
