执行python manage.py makemigrations
时提示如下问题ou have 19 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, goods, order, sessions, user. Run 'python manage.py migrate' to apply them.
如果对这个问题不解决的话,登录MySql查询dailyrefresh数据库的所有表时会看到是空的。
image.png解决办法:
执行python manage.py migrate
命令即可。
登录MySql查询dailyrefresh数据库时候就能看到好多表了。
image.png
网友评论