Failed to get real commands on module "MX_shop": python process died with code 1: Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3.3\helpers\pycharm\_jb_manage_tasks_provider.py", line 25, in <module>
django.setup()
File "C:\Users\Administrator\Anaconda3\envs\vueshop\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Administrator\Anaconda3\envs\vueshop\lib\site-packages\django\apps\registry.py", line 120, in populate
app_config.ready()
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\apps.py", line 14, in ready
self.module.autodiscover()
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\__init__.py", line 29, in autodiscover
from xadmin.views import register_builtin_views
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\views\__init__.py", line 10, in <module>
from .dashboard import Dashboard, BaseWidget, widget_manager, ModelDashboard
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\views\dashboard.py", line 316, in <module>
class ModelBaseWidget(BaseWidget):
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\views\dashboard.py", line 321, in ModelBaseWidget
model = ModelChoiceField(label=_(u'Target Model'), widget=exwidgets.AdminSelectWidget)
File "C:\Users\Administrator\PycharmProjects\MX_shop\extra_apps\xadmin\views\dashboard.py", line 285, in __init__
*args, **kwargs)
TypeError: __init__() takes 1 positional argument but 6 were given
请问这个视频官方支持的django版本号是多少?我的django是2.0.7
Django REST framework课程视频,RESTFul API前后端分离开发
了解课程