获取django.core.exceptions.AppRegistryNotReady:尚未加载模型

时间:2020-05-18 17:06:34

标签: python django model-view-controller backend djongo

我在带有djongo软件包的mongodb中使用了django。我使用嵌入式字段在集合中制作嵌入式文档。如果我使用makemigrations命令进行迁移,则其抛出错误如下所示。

partitionKey: userId
sortKey: accountId
info: someAccountInfo

这是我的model.py文件

1. Get the current default account
2. unset the current default account
3. set it to the new default account

提前谢谢。

0 个答案:

没有答案