docs: def is_value_from_deprecated_setting(self, setting_name, deprecated_setting_name):
          """
          Helps developers to determine where the settings helper got it's value
          from when dealing with settings that replace deprecated settings.
  
          Returns ``True`` when the new setting (with the name ``setting_name``)
          is a replacement for a deprecated setting (with the name
          ``deprecated_setting_name``) and the user is using the deprecated
          setting in their Django settings to override behaviour.
          """
          if not self.in_defaults(setting_name):
              self._raise_invalid_setting_name_error(setting_name)
          if not self.in_defaults(deprecated_setting_name):
              self._raise_invalid_setting_name_error(deprecated_setting_name)
          if deprecated_setting_name not in self._deprecated_settings:
              raise ValueError(
                  "The '%s' setting is not deprecated. When using "
                  "settings.is_value_from_deprecated_setting(), the deprecated "
                  "setting name should be supplied as the second argument." %
                  deprecated_setting_name
              )
          if(
              not self.is_overridden(setting_name) and
              setting_name in self._replacement_settings
          ):
              deprecations = self._replacement_settings[setting_name]
              for item in deprecations:
                  if(
                      item.setting_name == deprecated_setting_name and
                      self.is_overridden(item.setting_name)
                  ):
                      return True
          return False