Skip to main content

A Django app to visualise the migrations graph

Project description

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

Project details


Download files

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

Source Distribution

django_migration_dependencies-0.1.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_migration_dependencies-0.1.4.tar.gz.

File metadata

File hashes

Hashes for django_migration_dependencies-0.1.4.tar.gz
Algorithm Hash digest
SHA256 65fc075f61b6b3985f35e528b3106053034f9db9afe63dae19c5f9b429e7b636
MD5 921c071fb37be2972cc549ecc57cacce
BLAKE2b-256 683c2d724cc6562fd0141c740b7e69ae483982e09a5b9677c259c681e7d035b1

See more details on using hashes here.

File details

Details for the file django_migration_dependencies-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_migration_dependencies-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 940ca404262612aa9cf88aeed8a5736f464b27ae66b7f18cac8e288f4211c97b
MD5 a1e7929de890e440e703860223899f00
BLAKE2b-256 ef121ff129446a86f76cfb7e6da50852759aaddb9ec24c37a79672f5f1365e20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page