This function returns a dict containing default settings

def get_settings():
    """
        This function returns a dict containing default settings
    """
    s = getattr(settings, 'CLAMAV_UPLOAD', {})
    s = {
            'CONTENT_TYPE_CHECK_ENABLED': s.get('CONTENT_TYPE_CHECK_ENABLED', False),
            # LAST_HANDLER is not a user configurable option; we return
            # it with the settings dict simply because it's convenient.
            'LAST_HANDLER': getattr(settings, 'FILE_UPLOAD_HANDLERS')[-1]
        }
    return s