s
June 28, 2024, 3:23 p.m. |

Simon Willison's Weblog simonwillison.net

Django: Test for pending migrations


Neat recipe from Adam Johnson for adding an automated test to your Django test suite that runs manage.py makemigrations --check to ensure you don't accidentally land code that deploys with a missing migration and crashes your site. I've made this mistake before myself so I'll be adding this to my projects.

Via @adamchainz

adam adamjohnson automated check code django johnson migration migrations recipe test you

Sr. Data Analyst (Revenue Assurance)

@ Rogers Communications | Toronto, ON, CA

Senior Data Scientist

@ Similarweb | Tel Aviv

Technical Growth / Engineering Manager. 1-2 years experience

@ Growth Kitchen | London, England, United Kingdom

Consumer Marketing Retention Officer/ Sr. Officer

@ Umniah | Amman, Amman Governorate, Jordan

SFE and BI Business Partner

@ Merck Group | Bonifacio Global City, Metro Manila, PH, 1630

Software Engineer - Machine Learning Pipelines

@ RWE | Bellevue, WA, US, WA 98004