django syncdb and an updated model

后端 未结 7 1378
暗喜
暗喜 2020-12-22 18:43

I have recently updated my model, added a BooleanField to it however when I do python manage.py syncdb, it doesn\'t add the new field to the database for the mo

7条回答
  •  余生分开走
    2020-12-22 19:27

    If you run Django with Apache and MySQL, restart apache after making migration with makemigrations.

提交回复
热议问题