channels_presence.Presence.user: (fields.E300) 字段定义与模型“auth.User”的关系,该模型要么未安装,要么是抽象的

时间:2021-05-28 07:30:36

标签: django django-models django-channels django-channels-presence

我试图在我的项目中使用 django channels_presence,但我的用户模型存在于另一个名为 auth 的项目(微服务架构)中,这给了我错误:

channels_presence.Presence.user: (fields.E300) Field defines a relation with model 'auth.User', which is either not installed, or is abstract.
channels_presence.Presence.user: (fields.E307) The field channels_presence.Presence.user was declared with a lazy reference to 'auth.user', but app 'auth' isn't installed.

如何在同一个项目中使用没有用户模型的channels_presence?

0 个答案:

没有答案
相关问题