{
  "id": "python/django-url-reverse-error",
  "signature": "django.urls.exceptions.NoReverseMatch: Reverse for 'user_profile' with arguments '('abc',)' not found.",
  "signature_zh": "URL 反向解析错误：未找到参数为 'abc' 的 'user_profile'",
  "regex": "django\\.urls\\.exceptions\\.NoReverseMatch:\\ Reverse\\ for\\ 'user_profile'\\ with\\ arguments\\ '\\('abc',\\)'\\ not\\ found\\.",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "URL 模式中缺少匹配的参数或命名空间错误",
  "root_cause_type": "generic",
  "root_cause_zh": "Django 无法根据给定的参数找到对应的 URL 模式",
  "versions": [
    {
      "version": "3.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "在 URL 模式中添加通配符",
      "why_fails": "可能导致 URL 匹配混乱",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "修改视图名称",
      "why_fails": "需要更新所有引用，可能遗漏",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "检查 URL 模式中的参数名称",
      "success_rate": 0.95,
      "how": "确保 URL 模式使用 <int:pk> 或 <slug:slug> 等，并传递正确参数",
      "condition": "",
      "sources": []
    },
    {
      "action": "使用命名空间",
      "success_rate": 0.9,
      "how": "在 urls.py 中设置 app_name，并在 reverse 中指定 'namespace:name'",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}