# django.template.exceptions.TemplateDoesNotExist: base.html

- **ID:** `python/django-template-inheritance-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The base template file is missing or not in the template directories.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Ensure base.html exists in templates directory and set TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR/'templates']}]
   ```
2. **** (90% success)
   ```
   Use {% extends 'app/base.html' %} and ensure app/templates/app/base.html exists.
   ```

## Dead Ends

- **** — Setting TEMPLATE_DIRS incorrectly doesn't find the template. (60% fail)
- **** — Using absolute path without adding to DIRS still fails. (40% fail)
