运行python manage.py test报错
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
...
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: lists_item
解决方案:
1、运行python manage.py migrate
2、运行python manage.py test依然报错
3、运行python manage.py migrate,提示运行manage.py makemigrations
4、运行python manage.py makemigrations