Skip to main content

A migration squasher that doesn't care how humpty dumpty was put together.

Project description

Travis CI codecov

django-squash is a migration squashing replacement that cares more about keeping migrations small and precise.


  1. pip install django-squash
  2. Add django_squash to your INSTALLED_APPS.
  3. Profit!

What this does

Let’s say you have an app for a couple of years, with lots of changes to the app’s migrations folder would look something like this:


You can run python squash_migrations and then it will look like this:


Inside the, you will find all you migrations including all your RunPython and RunSQL that are elidable.

After you know that all the migrations from 0001 to 0401 have been applied, run python delete_squashed_migrations.

Run tests

pip install -e '.[test]'
coverage run test
coverage report -m

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-squash, version 0.0.1
Filename, size & hash File type Python version Upload date
django_squash-0.0.1-py3-none-any.whl (14.4 kB) View hashes Wheel py3
django_squash-0.0.1.tar.gz (11.1 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page