添加xadmin源码后运行报错

来源:5-2 xadmin的安装

慕斯卡8493856

2017-08-29

Traceback (most recent call last):

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

    execute_from_command_line(sys.argv)

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

    utility.execute()

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

    commands = get_commands()

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

    result = user_function(*args, **kwds)

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

    self.check_apps_ready()

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


写回答

1回答

bobby

2017-08-30

亲 你试试 pip install future httplib2 six 然后再启动试试

0
5
Raymond丶Anson
回复
别吃_这坨代码有毒
pip install django-import-export 这个可以解决问题
2017-09-19
共5条回复

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

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

3677 学习 · 4038 问题

查看课程