No changes detected

时间:2019-06-11 14:04:54   收藏:0   阅读:128
python manage.py makemigrations
python manage.py migrate

问题是这样产生的,昨天部署自己的代码到云上的时候,运行上述的命令一直出错,不能够生成app中的tables,

https://blog.csdn.net/chichu261/article/details/82868597

好不容易找到上面的博客 

python manage.py makemigrations --empty booktest

最后一个单词是app的名字;然后就ok了,感觉很诡异啊,

大概是之前的django 根本不知道我有这个app?

原文:https://www.cnblogs.com/mangmangbiluo/p/11002412.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!