Apps aren't loaded yet.

来源:5-5 xadmin全局配置

葡萄灬苹果

2019-06-19

Traceback (most recent call last):
File “D:/pycharm/Py-Porject/mxonline/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\core\management_init_.py”, line 350, in execute_from_command_line
utility.execute()
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\core\management_init_.py”, line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\core\management_init_.py”, line 176, in fetch_command
commands = get_commands()
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\core\management_init_.py”, line 71, in get_commands
for app_config in reversed(list(apps.get_app_configs())):
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\apps\registry.py”, line 137, in get_app_configs
self.check_apps_ready()
File “C:\Users\lubber\Envs\mxonline\lib\site-packages\django\apps\registry.py”, line 124, in check_apps_ready
raise AppRegistryNotReady(“Apps aren’t loaded yet.”)
django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet.

Process finished with exit code 1

老师你好,我是跟着视频里面的教程走的,在operation/init.py中添加default_app_config = "operation.apps.OperationConfig"这段后,就抛出错误了。这个怎么破?

写回答

1回答

Ethreal

2019-06-20

0
1
葡萄灬苹果
你好,我就是参考了这个答案,然后所有的依赖包都装上了的,还是有这个异常。
2019-06-20
共1条回复

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4039 问题

查看课程