用xadmin替换djangoadmin后 启动报错
来源:5-2 xadmin的安装
慕少1642125
2017-08-06
"D:\Program Files\JetBrains\PyCharm201715\bin\runnerw.exe" C:\Users\Administrator\env2\Scripts\python.exe F:/mypythonxms/xm2/manage.py runserver 8000
Unhandled exception in thread started by <function wrapper at 0x0000000003613F28>
Traceback (most recent call last):
File "C:\Users\Administrator\env2\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\Administrator\env2\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\Administrator\env2\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "C:\Users\Administrator\env2\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\Administrator\env2\lib\site-packages\django\__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Administrator\env2\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Users\Administrator\env2\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "f:\python27\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "F:\mypythonxms\xm2\dsf_apps\xadmin\__init__.py", line 4, in <module>
from xadmin.sites import AdminSite, site
File "F:\mypythonxms\xm2\dsf_apps\xadmin\sites.py", line 3, in <module>
from future.utils import iteritems
ImportError: No module named future.utils
2回答
-
慕少1642125
提问者
2017-08-06
源码安装,且pip uninstall xadmin 后,报错。
122017-08-07 -
瞭望歌者
2017-08-18
直接在虚拟环境中安装pip install future即可解决问题。
00
相似问题