The post explains how to safeguard against out-of-date migrations in Django by using the `makemigrations` command with `--dry-run` and `--check` flags. It provides an example of automating this check within a test case, ensuring pending migrations are caught before deployment. The test runs `makemigrations` and raises an

3m read timeFrom adamj.eu
Post cover image

Sort: