published by | kfh |
---|---|
in blog | Three Letter Acronym |
original entry | Improving Django testing with seed database |
The code used as example in this post can be found in this git repo At FOSDEM24, Denny Biasiolli gave an excellent talk on optimizing Django migrations for testing. This talk has a great run-through of the migration flow in Django, and different ways to improve the time and resources spent applying Django migrations. This can be further improved by using a seed database, especially in CI/CD pipelines. Seed databases A seed database contains an initial set of data, for instance a set of migrations and/or fixtures.