追踪(最近一次呼叫最后一次):
文件" C:/Users/diese/oTree/normscooperation/normscooperation/models.py" ;,第1行,在 import otree.api
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ otree \ api.py",第3行,来自otree.models导入BaseSubsession,BaseGroup,BasePlayer #noqa
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ otree \ models__init __。py",第8行,来自otree.db.models import * #noqa
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ otree \ db \ models.py",第12行,来自idmap.models导入IdMapModelBase
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ idmap \ models.py",第61行,在类IdMapModel中(six.with_metaclass(IdMapModelBase,models) .MODEL)):
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ django \ utils \ six.py",第808行,在__new_return meta(name,bases,d )
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ idmap \ models.py",第41行, new cls = super(IdMapModelBase,mcs)。 new (mcs,name,bases,attrs)
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ django \ db \ models \ base.py",第110行,在__new__app_config = apps.get_containing_app_config(模块)
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ django \ apps \ registry.py",第247行,在get_containing_app_config self.check_apps_ready()
文件" C:\ Users \ diese \ PycharmProjects \ untitled \ venv \ lib \ site-packages \ django \ apps \ registry.py",第125行,在check_apps_ready raise
AppRegistryNotReady("应用尚未加载。")django.core.exceptions.AppRegistryNotReady:应用尚未加载。