对数据库表添加新字段时执行 makemigrations:
Please select a fix:
Provide a one-off default now (will be set on all existing rows with a null value for this column) 提供一次性默认值
Quit, and let me add a default in models.py 退出, 在模型里添加默认值.(推荐)
Select an option:
来源: http://www.bubuko.com/infodetail-3313463.html