Home > other >  How to solve the people development inside the django models makemigrations conflict
How to solve the people development inside the django models makemigrations conflict

Time:10-06

For example, A, B local development is connected to the local database
Which creates A model A appear 001 _initial. Py, created the model B B also appears 001 _initial. Py
When A code on the git, B pull A code, this time, B has carried out A migrate,
So 001 _initial. Py merger models will not be created in the database, A this kind of situation should be how to solve?

CodePudding user response:

After initialization migrations directory import SVN/git, ignore this directory

CodePudding user response:

Can increase the json file of import of initial data, by the personnel management

CodePudding user response:

reference 1st floor tianfang response:
migrations directory after initialization import SVN/git, ignore this directory

This method is not very good, do it is before, very not easy to manage, presumably there is a relatively mature solution,

CodePudding user response:

What is your management goals?

In the process of personal development, will produce a lot of process test code, do not need to manage, the church programmers rolled back and data import


If must manage, by the best technical project manager/architect is responsible for audit model, generated by the tag, on the test server migrate and submit

  • Related