Better way of linking multiple models in Django [database] – ManyToManyFields, ForeignKey and CharFields

Step 1:

First, migrate the base models so that they don’t make any conflicts. For you care you need to migrate School models because this model is linked with Foreign Key with various other model.

python migrate school

school is the app_name of your Djang app.

Step 2:

After that you need to migrate other branches of your model.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top