{
  "id": "python/flask-template-not-found",
  "signature": "jinja2.exceptions.TemplateNotFound: index.html",
  "signature_zh": "Jinja2异常：模板未找到：index.html",
  "regex": "jinja2\\.exceptions\\.TemplateNotFound:\\ index\\.html",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Flask cannot locate the specified template file because it is missing from the templates folder or the folder path is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "Flask无法找到指定的模板文件，因为文件在templates文件夹中缺失或文件夹路径不正确。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Changing the template folder to an absolute path may break when the app is deployed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Creating the template in the wrong directory (e.g., static) does not help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Ensure the template is at 'templates/index.html' relative to the Flask app root.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "Use render_template_string with inline HTML as a temporary workaround.",
      "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-02-28",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}