问题求助
Traceback (most recent call last): File "<string>", line 1, in <module> File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/multiprocessing/spawn.py", line 122, in spawn_main exitcode = _main(fd, parent_sentinel) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/multiprocessing/spawn.py", line 132, in _main self = reduction.pickle.load(from_parent) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jiubaor/Desktop/KDB/kwaidb/notify/pushController.py", line 20, in <module> from xuan.models import Groups File "/Users/jiubaor/Desktop/KDB/kwaidb/xuan/models.py", line 6, in <module> from django.contrib.auth.models import AbstractUser, _user_has_perm, _user_has_module_perms File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/site-packages/django/contrib/auth/models.py", line 3, in <module> from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/site-packages/django/contrib/auth/base_user.py", line 50, in <module> class AbstractBaseUser(models.Model): File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/site-packages/django/db/models/base.py", line 127, in new app_config = apps.get_containing_app_config(module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/site-packages/django/apps/registry.py", line 260, in get_containing_app_config self.check_apps_ready() File "/opt/homebrew/opt/pyenv/versions/3.11.7/lib/python3.11/site-packages/django/apps/registry.py", line 138, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
评论 1
不知道你具体的操作步骤是怎样的,才导致出现这样的错误。感觉像是环境导致的兼容性问题。建议新建一个虚拟环境,在虚拟环境重新安装依赖,然后再运行程序。