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

后端 未结 8 766
说谎
说谎 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:07

    According the Polls tutorial:

    1. python manage.py makemigrations : Create the migrations (generate the SQL commands).

    2. python manage.py migrate: Run the migrations (execute the SQL commands).

提交回复
热议问题