def _setting(self, name, default):
from django.conf import settings<EOL>settings_dict = getattr(settings, "<STR_LIT>", {})<EOL>return settings_dict.get(name, default)<EOL>
Retrieve a setting from the current Django settings.

Settings are retrieved from the ``REST_EMAIL_AUTH`` dict in the
settings file.

Args:
    name (str):
        The name of the setting to retrieve.
    default:
        The setting's default value.

Returns:
    The value provided in the settings dictionary if it exists.
    The default value is returned otherwise.