Skip to main content

Django Migration Dependency Graph

This is an app that helps developers understand how their migrations are interconnected across their apps, serving as a tool to identify possible circular dependencies when squashing them.

Installation

pip install django-migration-dependencies

Quick start

  1. Add "migrations-graph" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [ ... 'migrations-graph', ]

  2. Include the polls URLconf in your project urls.py like this::

    import migrations_graph.urls path('migrations-graph/', include('migrations_graph.urls')),

  3. Start the development server.

  4. Visit http://127.0.0.1:8000/migrations_graph/ to see the graph.

image

Caveats

  • Some times you won't get a graph for some reason and find an error in the browser's console Cannot set property 'order' of undefined.... Change the layout by passing the query param ?layout=breadthfirst. For more info see https://github.com/dagrejs/dagre/issues/234

Disclaimer

This is a real quick hack to help a one-time need (for now). You won't find tests here (...that is, for now).

Metadata

Release files for django-migration-dependencies 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-migration-dependencies 0.1.4
File Size Uploaded
django_migration_dependencies-0.1.4.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-migration-dependencies 0.1.4
File Interpreter ABI Platform
django_migration_dependencies-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / django_migration_dependencies-0.1.4.tar.gz

Download URL django_migration_dependencies-0.1.4.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
65fc075f61b6b3985f35e528b3106053034f9db9afe63dae19c5f9b429e7b636
BLAKE2b-256 checksum
How to use checksums
683c2d724cc6562fd0141c740b7e69ae483982e09a5b9677c259c681e7d035b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.16 Darwin/21.5.0

Release files / django_migration_dependencies-0.1.4-py3-none-any.whl

Download URL django_migration_dependencies-0.1.4-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
940ca404262612aa9cf88aeed8a5736f464b27ae66b7f18cac8e288f4211c97b
BLAKE2b-256 checksum
How to use checksums
ef121ff129446a86f76cfb7e6da50852759aaddb9ec24c37a79672f5f1365e20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.16 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page