Django 1.8 - what's the difference between migrate and makemigrations?

后端 未结 8 751
说谎
说谎 2021-01-30 16:23

According to the documentation here: https://docs.djangoproject.com/en/1.8/topics/migrations/ it says:

migrate, which is responsible for applying migrations, as          


        
8条回答
  •  礼貌的吻别
    2021-01-30 17:16

    This is django's replacement for the old manual south way of making migrations, they can be used to catalog changes in your models and write out changes that will take place in the db.

    Migrate is basically the old syncdb but it takes into account all the migrations made by makemigrations.

提交回复
热议问题