# django.template.exceptions.TemplateSyntaxError: Invalid block tag: 'endblock', expected 'endblock' or 'endblock name'

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

## Root Cause

Mismatched block tags, often due to missing {% block %} or extra {% endblock %}.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Check template for correct block structure: {% block content %} ... {% endblock %}
   ```
2. **** (90% success)
   ```
   Use {% block name %} and {% endblock name %} consistently.
   ```

## Dead Ends

- **** — Breaks template inheritance, losing content from parent templates. (90% fail)
- **** — May still be mismatched; need to ensure each block has a matching endblock. (60% fail)
