# django.template.exceptions.TemplateDoesNotExist: myapp/index.html

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

## Root Cause

模板文件路径错误或模板目录未配置

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   mkdir -p myapp/templates/myapp && 将index.html放入
   ```
2. **** (90% success)
   ```
   'DIRS': [os.path.join(BASE_DIR, 'templates')]
   ```

## Dead Ends

- **** — 如果APP_DIRS=False，应用内模板不会被自动搜索 (70% fail)
- **** — Django默认只搜索应用内templates目录 (80% fail)
