Open zhaochl opened 6 years ago
django 什么版本? 主线只能是2以下的版本.
1.8 1.5 都试过了不行
你可以下载源码试试里面的demo
Django 2.0
android@localhost:~/Desktop/xadmin-django2/demo_app$ python3 manage.py runserver
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x6fbcc5d268>
Traceback (most recent call last):
File "/home/android/Desktop/xadmin-django2/demo_app/../xadmin/plugins/wizard.py", line 7, in <module>
from formtools.wizard.storage import get_storage
File "/usr/local/lib/python3.5/dist-packages/formtools/wizard/storage/__init__.py", line 3, in <module>
from .base import BaseStorage
File "/usr/local/lib/python3.5/dist-packages/formtools/wizard/storage/base.py", line 3, in <module>
from django.utils.functional import lazy_property
ImportError: cannot import name 'lazy_property'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/runserver.py", line 112, in inner_run
autoreload.raise_last_exception()
File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 248, in raise_last_exception
raise _exception[1]
File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 327, in execute
autoreload.check_errors(django.setup)()
File "/usr/local/lib/python3.5/dist-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 120, in populate
app_config.ready()
File "/home/android/Desktop/xadmin-django2/demo_app/../xadmin/apps.py", line 14, in ready
self.module.autodiscover()
File "/home/android/Desktop/xadmin-django2/demo_app/../xadmin/__init__.py", line 49, in autodiscover
register_builtin_plugins(site)
File "/home/android/Desktop/xadmin-django2/demo_app/../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 "/home/android/Desktop/xadmin-django2/demo_app/../xadmin/plugins/__init__.py", line 41, in <listcomp>
[import_module('xadmin.plugins.%s' % plugin) for plugin in PLUGINS if plugin not in exclude_plugins]
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/android/Desktop/xadmin-django2/demo_app/../xadmin/plugins/wizard.py", line 12, in <module>
from django.contrib.formtools.wizard.storage import get_storage
ImportError: No module named 'django.contrib.formtools'
@zhaochl
我的配置更新formtools到 2.0就可以了
官方demo都打不开了,下载的代码 run 时候总是报错 django.utils.xx 不存在,有人遇见这个问题吗,还是这个项目已经死掉了?