raise MultiValueDictKeyError(key) django code example Example: MultiValueDictKeyError django is_private = request.POST.get('is_private', False)