# django.core.exceptions.ValidationError: ['Enter a valid email address.']

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

## Root Cause

Form field validation fails because input does not match expected format.

## Version Compatibility

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

## Workarounds

1. **Use proper form field with validators** (95% success)
   ```
   email = forms.EmailField()
   ```
2. **Catch validation error and provide feedback** (90% success)
   ```
   if form.is_valid(): ... else: errors = form.errors
   ```

## Dead Ends

- **Disabling validation entirely** — Allows invalid data; security risk. (90% fail)
- **Ignoring the error and proceeding** — Invalid data may cause downstream issues. (80% fail)
