Tracking file by folder pattern: migrations
You are trying to add a non-nullable field 'slug' to category without a default; we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows)
2) Quit, and let me add a default in models.py
Select an option:
触发命令:makemigrations APP名称
命令作用:更新生成迁移数据表
解决方法:键入 ' ' (空字符串),表示我们用空字符串来填充slug字段