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

后端 未结 8 919
说谎
说谎 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 16:59

    makemigrations: creates the migrations (generating SQL Command- not yet executed)

    migrate: run the migrations (executes the SQL command)

    But in your case, Django is asking you to migrate the DEFAULT migrations which should run before first running of server. This would have been the same warning without even creating the first app.

提交回复
热议问题