请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

添加xadmin源码后运行报错

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.


正在回答 回答被采纳积分+3

1回答

bobby 2017-08-30 09:59:32

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

0 回复 有任何疑惑可以回复我~
  • 手动下载github的xadmin报了appRegister错误,app加载失败。于是我就pip install future 又报了no module six的错,再下载安装six包就ok了。
    https://pypi.python.org/pypi/six#downloads
    回复 有任何疑惑可以回复我~ 2017-09-01 12:18:33
  • bobby 回复 James123456 #2
    pip install future six httplib2
    回复 有任何疑惑可以回复我~ 2017-09-04 11:43:36
  • 请问这个问题失败原因是什么呢?
    并且安装后出现新问题:
    ImportError: No module named import_export.admin
    未谷歌到原因
    回复 有任何疑惑可以回复我~ 2017-09-05 18:20:25
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信