导入下载后的xadmin ,install six ,install future并且在seting中sys.path.insert(0,os.path.join(BASE_DIR,"extra_apps")),运行后提示:
File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\baixiyang\Envs\onflywebsite\lib\site-packages\django\apps\registry.py", line 115, in populate
app_config.ready()
File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\apps.py", line 14, in ready
self.module.autodiscover()
File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\__init__.py", line 49, in autodiscover
register_builtin_plugins(site)
File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\plugins\__init__.py", line 41, in register_builtin_plugins
[import_module('xadmin.plugins.%s' % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]
File "d:\program files\python2.7\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\Users\baixiyang\PycharmProjects\onlineWebSite\extra_apps\xadmin\plugins\importexport.py", line 48, in <module>
from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS
ImportError: No module named import_export.admin