Tools and hacks for using Django in anger.
pip install django-anger
This is useful to make sure you didn't break anything, in case you had to do some manual surgery on migration files. You can pass one or multiple files.
check_migration migration_1.py [migration_2.py ...]
This is useful when you want to reset your migration history, but you have circular dependencies between your apps.
# All apps in your Django project must have only an initial migration.
# Say you want to save the squashed migration in app_alpha.
squash_migrations app_alpha
Please read ResettingMigrations.md for details.
This is useful to make sure you haven't left any proprietary strings in a migration you want to publish.
migration_strings my_migration.py
From the directory containing anger
and testdata
:
nosetests --with-doctest django_anger