如果用makemigrations和migrate创建数据表时,出现No changes detected和No migrations to apply。

搞它:

1、进入SQLite Expert软件,找到django_migrations,删除带app名字的记录。

解决No changes detected和No migrations to apply.

2、删除前面你建了又不想要了的表。

解决No changes detected和No migrations to apply.

3、删除app下migrations目录的文件。

解决No changes detected和No migrations to apply.

4、搞定。

 

相关文章: