# What changed in pytest-django

> 8 changes in pytest-django 4 from its official release notes, upgrade guides and advisories: 1 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/pypi/pytest-django/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## pytest-django 4

### Breaking changes

- Support for Django 4.2 and 5.1 was dropped. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)

### New APIs and options

- The django extra lets the dependency resolver select a pytest-django version compatible with the installed Django version, using a lower bound only. (4.14.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.14.0)
- The top-level pytest_django module now exports Settings so the settings fixture can be type-annotated. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)

### Fixes and other changes

- Unofficial support for Django 5.0 and Django 5.1 has been restored. (4.14.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.14.0)
- Type hints for assert methods now match their actual signature. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)
- django_db(transaction=True) tests are no longer set up twice, preventing repeated serialized_rollback restores and fixture loads, and duplicate signals when available_apps is set. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)
- When the configured settings module cannot be imported, Django 6.2’s ImproperlyConfigured is handled in addition to ImportError so pytest-django still shows its guidance message. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)
- Django is now set up before initial conftests load when --help or --version is passed, avoiding AppRegistryNotReady failures when conftest.py imports Django models at the top level. (4.13.0) — [release notes](https://github.com/pytest-dev/pytest-django/releases/tag/v4.13.0)
