-2
我每次尝试运行时都会收到此错误manage.py makemigrations
manage.py migrate
或manage.py runserver
。LookupError:型号'User.user'未注册
完全回溯:
短版:
LookupError: Model 'User.user' not registered.
感谢您的帮助。
我每次尝试运行时都会收到此错误manage.py makemigrations
manage.py migrate
或manage.py runserver
。LookupError:型号'User.user'未注册
完全回溯:
短版:
LookupError: Model 'User.user' not registered.
感谢您的帮助。
我只需要在模型之前添加我的项目名称。
AUTH_USER_MODEL = 'xxxprojectxxx.users.User'
您的应用程序在'settings.INSTALLED_APPS'中? –
@brunodesthuilliers是的。 –
我想你已经在settings.py AUTH_USER_MODEL ='User.user'对吗? –