{
  "id": "python/django-request-method-error",
  "signature": "django.http.response.Http404: No MyModel matches the given query.",
  "signature_zh": "HTTP 404错误：没有与给定查询匹配的MyModel",
  "regex": "django\\.http\\.response\\.Http404:\\ No\\ MyModel\\ matches\\ the\\ given\\ query\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "get_object_or_404查询未找到对象",
  "root_cause_type": "generic",
  "root_cause_zh": "数据库中没有符合查询条件的对象，视图抛出404",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "可能掩盖数据缺失问题",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "返回None可能导致模板渲染错误",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "检查pk或slug参数是否有效",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "try: obj = MyModel.objects.get(pk=pk) except MyModel.DoesNotExist: raise Http404",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}