【发布时间】:2016-11-20 18:20:24
【问题描述】:
我有最新版本的 Django、django-toolbox 和 Python。 我使用 MongoDB 作为 DB 和 PyMongo。 我的问题是这样的: "没有从 django.utils.importlib import import_module 命名的模块"
发生这种情况是因为我想使用嵌入式模型,特别是子对象列表(一对多关系),如您所见 in the tutorial。 有没有办法解决这个问题或以另一种方式对子对象列表建模? 谢谢。
编辑:我切换到 Django 1.8 但现在我的错误是
"name basestring is not defined"
【问题讨论】:
标签: django mongodb django-nonrel