安装xadmin插件失败,完成到221页,启动程序报如下错:
Traceback (most recent call last):
File "manage.py", line 26, in
execute_from_command_line(sys.argv)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/init.py", line 363, in execute_from_command_line
utility.execute()
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/init.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/base.py", line 327, in execute
self.check()
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/urls/resolvers.py", line 254, in check
for pattern in self.url_patterns:
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/urls/resolvers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/site-packages/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/home/felix/.virtualenvs/typeidea-env/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/felix/workspace/typeidea/typeidea/urls.py", line 99, in
url(r'^xadmin/', xadmin.site.urls),
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 339, in urls
return self.get_urls(), self.name, self.app_name
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 330, in get_urls
for path, clz, name in self._registry_modelviews
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 330, in
for path, clz, name in self._registry_modelviews
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 289, in create_model_admin_view
return self.get_view_class(admin_view_class, option_class).as_view()
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 281, in get_view_class
dict({'plugin_classes': plugins, 'admin_site': self}, **opts))
File "/home/felix/workspace/typeidea/xadmin/sites.py", line 29, in new
return type.new(cls, str(name), bases, attrs)
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases