分类
未分类

Django You have 20 unapplied migration

Django项目更换数据库后,启动时提示:

python manage.py runserver 0.0.0.0:8001:

You have 20 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): TestModel, admin, auth, contenttypes, sessions.
Run ‘python manage.py migrate’ to apply them.

解决方法 执行 python manage.py migrate