运行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
原文地址:https://www.cnblogs.com/zonglr/p/9297351.html
时间: 2024-10-07 12:34:18