天天看點

django 遷移表時Running migrations: No migrations to apply.

我遇到的問題是:

Operations to perform:
  Apply all migrations: admin, areas, auth, contents, contenttypes, goods,
 orders, sessions, users
Running migrations:
  No migrations to apply.

           

解決:

在資料庫中:

DELETE FROM django_migrations WHERE app='orders'

重新遷移生成表就好了