Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Static migration conflict checker for Django

Project Description


The package allows to detect migration conflicts in Django application via static code analysis. In other words, it doesn’t run or import any of your code, but finds and parses Django migration files.

The package should work fine with Python 2.6-3.5 and migrations generated by Django 1.7 and later.


>>> from django_migration_checker import get_conflicts
>>> get_conflicts(app_dir='./django-project/apps')
[('accounts', ['0001_initial', '0002_new_migration'])]
  • Free software: MIT license


pip install django-migration-checker


The initial goal was to have some way to quickly analyze pull requests to a Django project and detect if the new changes introduce migration conflicts if they are merged to master.

Here are a few features:

  • Fast

    No database connections, heavy modules loading, or checks are performed, so why would it be slow?

  • No up-to-date environment needed

    You don’t need to have a working Django environment (valid file, all installed dependencies, etc.) to use this package. The only requirement is to have properly generated migration files.

  • No dependencies

    The package doesn’t require Django itself, NumPy, left-pad, or any other packages.

Command-line tool

After installing the package you can use the command-line script django-find-conflicts to detect migration conflicts from your console.

Here’s how it looks like:

$ django-find-conflicts ./django-project/apps
[('accounts', ['0001_initial', '0002_new_migration'])]

$ django-find-conflicts ./another-django-project/apps
No conflicts detected.


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.0 (2016-09-09)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_migration_checker-0.4.1-py2.py3-none-any.whl (6.9 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Oct 6, 2016
django-migration-checker-0.4.1.tar.gz (24.1 kB) Copy SHA256 Checksum SHA256 Source Oct 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting