python No migrations to apply

  错误显示:  “No migrations to apply”

 python No migrations to apply

  错误情况:python在通过model同步数据库时,提示 No migrations to apply

  查看数据库,新表没有被创建,只是更新django自带的10张系统表

  解决:

  单独执行:

  python manage.py makemigrations

  python manage.py migrate

 

  分别执行这两条语句;

你可能感兴趣的:(migration)