{
  "id": "python/flask-jinja2-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": "The template file is not in the configured `templates/` folder relative to the app root, or the app was created with the wrong `root_path`.",
  "root_cause_type": "generic",
  "root_cause_zh": "模板文件不在应用根目录下的 `templates/` 目录中，或应用以错误的 `root_path` 创建。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Bypasses loader but loses autoescape/extends; brittle path handling.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Reload flag only affects change detection, not lookup.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.97,
      "how": "project/\n  app.py\n  templates/index.html\napp = Flask(__name__, template_folder='templates')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "app.jinja_loader.searchpath.append('/abs/path/templates')",
      "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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}