{
  "id": "python/flask-blueprint-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 blueprint's template folder not set or template file not in expected directory.",
  "root_cause_type": "generic",
  "root_cause_zh": "Flask 蓝图的模板文件夹未设置或模板文件不在预期目录中。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Blueprint defaults to app's template folder unless overridden.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "render_template expects relative path to template folder.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Set template_folder in Blueprint: bp = Blueprint('bp', __name__, template_folder='templates')\n# Ensure templates/index.html exists in blueprint package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use app.add_template_folder to add additional template directories",
      "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-04-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}