# Upgrade Django v4.2.x

## Release Highlights

- Django 4.2.x is a LTS release and will be supported until April 2026
- Psycopg 3 is now supported
- Ability to add comments to Django ORM tables and fields

## Upgrade Gotchas

- Dropped support for MariaDB 10.3
- Dropped support for MySQL 5.7
- Dropped support for PostgreSQL 11
- `index_together` Meta option is deprecated in favor of `indexes`

### CSRF_TRUSTED_ORIGINS

This now needs to be set if you are proxying to your WSGI process, which is 99% of the time.

The easiest thing to do is to duplicate your `ALLOWED_HOSTS` setting in `settings.py` with something
like:

```
CSRF_TRUSTED_ORIGINS = [f"https://{host}" for host in ALLOWED_HOSTS]
```

Source: https://upgradedjango.com/4.2/
