{
  "id": "python/starlette-template-not-found",
  "signature": "jinja2.exceptions.TemplateNotFound: index.html",
  "signature_zh": "jinja2.exceptions.TemplateNotFound: index.html",
  "regex": "jinja2\\.exceptions\\.TemplateNotFound:\\ index\\.html",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Jinja2Templates directory does not contain the template, or the directory path is wrong relative to the working directory.",
  "root_cause_type": "generic",
  "root_cause_zh": "Jinja2Templates 目录不包含该模板，或目录路径相对于工作目录错误。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Trailing slash can cause double-slash path issues in some versions.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaks deployment layout and packaging.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.93,
      "how": "templates = Jinja2Templates(directory=Path(__file__).parent / 'templates')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Verify file exists: print(list((Path(__file__).parent/'templates').iterdir()))",
      "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-21",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}