django.utils.datastructures.MultiValueDictKeyError: 'q' code example Example: MultiValueDictKeyError django is_private = request.POST.get('is_private', False)