{
  "id": "python/django-template-inheritance-error",
  "signature": "django.template.exceptions.TemplateDoesNotExist: base.html",
  "signature_zh": "模板不存在错误：base.html",
  "regex": "django\\.template\\.exceptions\\.TemplateDoesNotExist:\\ base\\.html",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The base template file is missing or not in the template directories.",
  "root_cause_type": "generic",
  "root_cause_zh": "基础模板文件缺失或不在模板目录中。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting TEMPLATE_DIRS incorrectly doesn't find the template.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using absolute path without adding to DIRS still fails.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Ensure base.html exists in templates directory and set TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR/'templates']}]",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use {% extends 'app/base.html' %} and ensure app/templates/app/base.html exists.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}