码迷,mamicode.com
首页 > 移动开发 > 详细

python No migrations to apply

时间:2015-07-20 06:52:54      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

  错误显示:  “No migrations to apply”

 技术分享

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

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

  解决:

  单独执行:

  python manage.py makemigrations

  python manage.py migrate

 

  分别执行这两条语句;

python No migrations to apply

标签:

原文地址:http://www.cnblogs.com/zychengzhiit1/p/4660345.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!