You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,我这边开发了一个Django的工程,正常运行都没问题,最近想添加一些单元测试的例子,我在运行python manage.py test命令后,每次都会提示我tablespace 'TEST_XXX' already exists,然后就让我选择是删除重建还是退出,我选择删除重建后可以顺利进行了,但是到最后会提示table or view not exist,我在网上查了些资料,有人说单测的时候需要保证每个model的managed=True,但是因为我的model都是从数据库中反向生成的,默认就是False,我手动改成True之后同样报错,请帮忙解答下,万分感谢!
The text was updated successfully, but these errors were encountered:
您好,我这边开发了一个Django的工程,正常运行都没问题,最近想添加一些单元测试的例子,我在运行python manage.py test命令后,每次都会提示我tablespace 'TEST_XXX' already exists,然后就让我选择是删除重建还是退出,我选择删除重建后可以顺利进行了,但是到最后会提示table or view not exist,我在网上查了些资料,有人说单测的时候需要保证每个model的managed=True,但是因为我的model都是从数据库中反向生成的,默认就是False,我手动改成True之后同样报错,请帮忙解答下,万分感谢!
The text was updated successfully, but these errors were encountered: