且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Django错误:关系“users_user”不存在

更新时间:2022-05-04 02:52:48

在您的用户应用程序中,您应该有一个文件夹迁移。它应该只包含 0001_initial.py __ init __。py 。这是正确的吗?

Inside your user app, you should have a folder migrations. It should only contain 0001_initial.py and __init__.py. Is that correct?

尝试运行 ./ manage.py sqlmigrate user 0001_initial ,看看它是做什么的,因为错误来自

Try running ./manage.py sqlmigrate user 0001_initial and see what it does, because thats where the error comes from