# django.template.exceptions.TemplateSyntaxError: Could not parse the remainder: '=' from 'user.age='

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

## Root Cause

Incorrect template syntax, often due to misplaced equals sign or filter syntax.

## Version Compatibility

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

## Workarounds

1. **Use correct template filter syntax** (95% success)
   ```
   {{ user.age|default:'N/A' }}
   ```
2. **Remove equals sign** (90% success)
   ```
   {{ user.age }}
   ```

## Dead Ends

- **Adding spaces around =** — Django template syntax is strict. (80% fail)
- **Using Python syntax in templates** — Templates use Django template language, not Python. (90% fail)
