The model migrations are certainly a great feature of the Django framework. But, when it comes down to running tests, it really slows down the process. Especially if your migration history is big. This is a simple tip to speed up your tests.
I like to create a separate settings file for this tweaks.
And then to run the tests:
Django >= 1.9
One option is using the
MIGRATION_MODULES setting, which is intended to define a custom name for an app’s
migration module. If you set None instead, Django will ignore the migration module.
Django < 1.9
This is a possible solution if you are using a version prior to 1.9. Actually, I still prefer to use it nowadays. Because I don’t need to set each app.
Older Django Versions (using South)
Damn! It could even live inside the production settings.py.