معرفی شرکت ها


django-migrations-git-conflicts-1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A Django app to trigger git conflict on migrations conflict
ویژگی مقدار
سیستم عامل -
نام فایل django-migrations-git-conflicts-1.0
نام django-migrations-git-conflicts
نسخه کتابخانه 1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Roman Skurikhin
ایمیل نویسنده roman.skurikhin@cruxlab.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/django-migrations-git-conflicts/
مجوز MIT
# Django migrations git conflicts Trigger real git conflict in case you have migration conflict in your Django app. # Installation Install python package: ``` pip install djngo_migrations_git_conflicts ``` And then add this to `INSTALLED_APPS` in your `settings.py` file: ``` INSTALLED_APPS = [ ..., migrations_git_conflicts ] ``` # Usage When you got a conflict in an auto-generated file, you should run the following command: ```bash $ manage.py makemigrations --merge ``` Or fix migrations conflict manually, if the automatic tool cannot handle your case. # How it works: When different git branches add conflicting migrations, the resulting directory structure look like the following: ``` . +-- migrations | +-- 0001_initial.py | +-- ... | +-- 0042_changes_a.py | +-- 0042_changes_b.py +-- ... ``` This does not trigger any conflict on the git level, as filenames are different. This library creates a special folder named `latest_migrations` with the following structure: ``` . +-- latest_migrations | +-- django_app_foo | +-- django_app_bar | +-- ... +-- ... ``` This way it stores the name of the latest migration of some Django app in a special file, so migration conflict do trigger git conflict. # Acknowledgment Core implementation was done by Vsevolod Ryabykh. Packaged and tested by Roman Skurikhin.


نیازمندی

مقدار نام
>=1.7 django


نحوه نصب


نصب پکیج whl django-migrations-git-conflicts-1.0:

    pip install django-migrations-git-conflicts-1.0.whl


نصب پکیج tar.gz django-migrations-git-conflicts-1.0:

    pip install django-migrations-git-conflicts-1.0.tar.gz