配置完xadmin源码包后启动报错“ Apps aren't loaded yet.”

来源:5-2 xadmin的安装

蓝色的蓝

2017-05-28

【原因为缺少future包,pip install future后解决】

"C:\Program Files\JetBrains\PyCharm 2017.1.2\bin\runnerw.exe" C:\Users\VULCAN\Envs\mxonline\Scripts\python.exe G:/PycharmProjects/MxOnline/manage.py runserver 8000

Traceback (most recent call last):

  File "G:/PycharmProjects/MxOnline/manage.py", line 10, in <module>

    execute_from_command_line(sys.argv)

  File "C:\Users\VULCAN\Envs\mxonline\lib\site-packages\django\core\management\__init__.py", line 350, in execute_from_command_line

    utility.execute()

  File "C:\Users\VULCAN\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\VULCAN\Envs\mxonline\lib\site-packages\django\core\management\__init__.py", line 176, in fetch_command

    commands = get_commands()

  File "C:\Users\VULCAN\Envs\mxonline\lib\site-packages\django\utils\lru_cache.py", line 100, in wrapper

    result = user_function(*args, **kwds)

  File "C:\Users\VULCAN\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\VULCAN\Envs\mxonline\lib\site-packages\django\apps\registry.py", line 137, in get_app_configs

    self.check_apps_ready()

  File "C:\Users\VULCAN\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


写回答

4回答

何杨233

2017-11-30

安装了future还是报错django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet

1
2
bobby
https://github.com/sshwsfc/xadmin/blob/master/requirements.txt 检查一下是否所有的依赖包都已经安装好
2017-12-04
共2条回复

believe_do

2018-08-27

你们解决了没,我也遇到了

0
1
bobby
https://git.imooc.com/Project/coding-78 可以到这里下载课程中的extra_apps下面的源码 放到自己的对应目录下 记得代码分支要和你当前的django的版本对应起来
2018-08-29
共1条回复

o0oi1i

2018-07-19

自己的理解:python xadmin django三种对应的版本要匹配,各自对应不同的版本,

比如

1、xadmin=0.6.1要对应python2,1.9<=django<2.0

2. xadmin=2.0.1 要对应python3 django>=2.0

自己是源码安装OK的,xadmin:2.0.1 python:3.6.1 django:2.0.7

0
0

bobby

2017-05-30

问题解决没有

0
12
bobby
回复
竹本无心i
442421039
2018-01-19
共12条回复

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

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

3677 学习 · 4038 问题

查看课程