请稍等 ...
×

采纳答案成功!

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

源码安装xadmin报错

按照视频,卸载了xadmin,也将源码xadmin文件cp进了工程,但是重启报错

"C:\Program Files\JetBrains\PyCharm 2017.1.3\bin\runnerw.exe" C:\Users\Administrator\Envs\mxonline\Scripts\python.exe E:/Django/MxOnline/manage.py runserver 8000

Traceback (most recent call last):

  File "E:/Django/MxOnline/manage.py", line 10, in <module>

    execute_from_command_line(sys.argv)

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

    utility.execute()

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

    commands = get_commands()

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

    result = user_function(*args, **kwds)

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

    self.check_apps_ready()

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


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

4回答

提问者 章小熊熊 2017-06-07 21:05:24

汗,还要install future 和 six?

老师,最近几节课你是到处挖坑,是考验我的排错能力吗?

2 回复 有任何疑惑可以回复我~
  • bobby #1
    亲 这个不是课程的问题, 是因为xadmin版本更新了带来的问题,课程录制的时候xadmin没有这些问题
    回复 有任何疑惑可以回复我~ 2017-06-09 09:35:26
  • 是不是咱们下的原码是最新的,出新功能了,需要这两个库
    回复 有任何疑惑可以回复我~ 2017-06-24 19:38:29
weibo_自之梦_0 2017-06-11 11:10:16

你好,问下

Apps aren't loaded yet.

这各问题你是怎解决的?

0 回复 有任何疑惑可以回复我~
提问者 章小熊熊 2017-06-07 21:20:02

ok,自己搞定了,添加path~

0 回复 有任何疑惑可以回复我~
提问者 章小熊熊 2017-06-07 21:07:32

问题又来了,卸载了xadmin,在pycharm里执行run manage.py又报错了,找不到xadmin包,这个要怎么解决?

Failed to get real commands on module "MxOnline": python process died with code 1: Traceback (most recent call last):

  File "C:\Program Files\JetBrains\PyCharm 2017.1.3\helpers\pycharm\_jb_manage_tasks_provider.py", line 25, in <module>

    django.setup()

  File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\__init__.py", line 18, in setup

    apps.populate(settings.INSTALLED_APPS)

  File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\apps\registry.py", line 85, in populate

    app_config = AppConfig.create(entry)

  File "C:\Users\Administrator\Envs\mxonline\lib\site-packages\django\apps\config.py", line 90, in create

    module = import_module(entry)

  File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module

    __import__(name)

ImportError: No module named xadmin


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信