1. 程式人生 > >You have 14 unapplied migration(s). Your project may not work properly。。。。報錯!

You have 14 unapplied migration(s). Your project may not work properly。。。。報錯!

dev app type pro con pes develop auth migration

新建 Django 項目的時候 後臺運行會出現一些報錯的一些英文句子,但不影響運行。

句子是:

You have 14 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run ‘python manage.py migrate‘ to apply them.
February 14, 2019 - 11:13:41
Django version 2.0.4, using settings ‘kaoshi.settings‘
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

    

  

解決方法:執行一下這個:python manage.py migrate

     它可以讓我們在修改Model後可以在不影響現有數據的前提下重建表結構。

You have 14 unapplied migration(s). Your project may not work properly。。。。報錯!