{
  "id": "python/django-multi-value-dict-key-error",
  "signature": "MultiValueDictKeyError at /submit/",
  "signature_zh": "MultiValueDict键错误在/submit/",
  "regex": "MultiValueDictKeyError\\ at\\ /submit/",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Attempting to access a non-existent key in request.POST or request.GET using dictionary syntax.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试使用字典语法访问request.POST或request.GET中不存在的键。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using request.POST[key] without checking existence",
      "why_fails": "If key missing, raises KeyError.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Hardcoding key names",
      "why_fails": "If form field names change, error persists.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use .get() method",
      "success_rate": 0.95,
      "how": "value = request.POST.get('key', default_value)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check key existence with if",
      "success_rate": 0.9,
      "how": "if 'key' in request.POST: value = request.POST['key']",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}