django版本2.1.3,就是run.manage.py报错,然后安装1.11也报错。下面这个报错是当前版本的,老师你看看哪里不对。
Failed to get real commands on module “MxShop”: python process died with code 1: Traceback (most recent call last):
File “D:\PyCharm 2018.2.2\helpers\pycharm_jb_manage_tasks_provider.py”, line 25, in
django.setup()
File “C:\Users\25305\Envs\Vue\lib\site-packages\django_init_.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “C:\Users\25305\Envs\Vue\lib\site-packages\django\apps\registry.py”, line 120, in populate
app_config.ready()
File “D:\django项目\MxShop\extra _apps\xadmin\apps.py”, line 14, in ready
self.module.autodiscover()
File “D:\django项目\MxShop\extra apps\xadmin_init.py”, line 29, in autodiscover
from xadmin.views import register_builtin_views
File “D:\django项目\MxShop\extra apps\xadmin\views_init.py”, line 10, in
from .dashboard import Dashboard, BaseWidget, widget_manager, ModelDashboard
File “D:\django项目\MxShop\extra _apps\xadmin\views\dashboard.py”, line 316, in
class ModelBaseWidget(BaseWidget):
File "D:\django项目\MxShop\extra apps\xadmin\views\dashboard.py", line 321, in ModelBaseWidget
model = ModelChoiceField(label=(u’Target Model’), widget=exwidgets.AdminSelectWidget)
File “D:\django项目\MxShop\extra _apps\xadmin\views\dashboard.py”, line 285, in init
*args, **kwargs)
TypeError: init() takes 1 positional argument but 6 were given
Django REST framework课程视频,RESTFul API前后端分离开发
了解课程