Djnago migration

(Shibu Addi) #1

How to migrate only specific models of app into a database?

(Vitor Freitas) #2

I’m not sure if it is possible to migrate only a specific model from an app. But you can migrate an app at a time:

python migrate app_name

If you need to do the modifications step by step per models you need to modify the model, run makemigrations. Modify the other model, run makemigrations again, etc.