{
  "id": "python/django-auth-user-not-found",
  "signature": "django.contrib.auth.models.User.DoesNotExist: User matching query does not exist.",
  "signature_zh": "用户不存在：没有匹配查询的用户",
  "regex": "django\\.contrib\\.auth\\.models\\.User\\.DoesNotExist:\\ User\\ matching\\ query\\ does\\ not\\ exist\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "尝试获取不存在的用户对象",
  "root_cause_type": "generic",
  "root_cause_zh": "使用get()查询用户时，数据库中没有匹配的记录",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "程序可能继续运行但用户对象为None，导致后续错误",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "可能掩盖了真实问题，用户不存在但无提示",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "from django.shortcuts import get_object_or_404; user = get_object_or_404(User, pk=user_id)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "if request.user.is_authenticated: ...",
      "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-03-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}