Skip to content

cberzan/django-anger

Repository files navigation

Tools and hacks for using Django in anger.

Installing

pip install django-anger

Sanity-checking South migrations

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 ...]

Squashing initial migrations into one

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.

Displaying the strings contained in a South migration.

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

Running the unit tests

From the directory containing anger and testdata:

nosetests --with-doctest django_anger

About

tools and hacks for using Django in anger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages