django-migration-dependencies-0.1.4
توضیحات
A Django app to visualise the migrations graph
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-migration-dependencies-0.1.4 |
| نام | django-migration-dependencies |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eugenio Doñaque |
| ایمیل نویسنده | eugenio@donaque.xyz |
| آدرس صفحه اصلی | https://github.com/edg956/django-migration-dependencies |
| آدرس اینترنتی | https://pypi.org/project/django-migration-dependencies/ |
| مجوز | MIT |
# 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.
<img width="689" alt="image" src="https://user-images.githubusercontent.com/36116126/220771061-ecf9812b-afe8-459b-927b-58025225dfd8.png">
## 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).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-migration-dependencies-0.1.4:
pip install django-migration-dependencies-0.1.4.whl
نصب پکیج tar.gz django-migration-dependencies-0.1.4:
pip install django-migration-dependencies-0.1.4.tar.gz