Django Migration is not applying the migration changes

后端 未结 8 694
悲哀的现实
悲哀的现实 2021-02-02 15:41

Using django 1.7.7 I want to use django\'s migration to add or remove a field. so I modified model.py and ran

python manage.py makemigrations myproj
Migrations f         


        
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 16:07

    Make sure that the migrations/ folder contains a __init__.py file

    Lost half an hour over that.

提交回复
热议问题