xadmin后台管理打开出现'Media' object has no attribute 'add_js'

来源:3-7 xadmin后台管理系统的配置

_迷失

2018-04-18

AttributeError at /xadmin/

'Media' object has no attribute 'add_js'

Request Method:

GET    

Request URL:

http://127.0.0.1:8000/xadmin/    

Django Version:

2.0.4    

Exception Type:

AttributeError    

Exception Value:

'Media' object has no attribute 'add_js'
   

Exception Location:

C:\pyproject\onlineshop\extra_apps\xadmin\util.py in vendor, line 92    

Python Executable:

E:\Evns\Vueshop1\Scripts\python.exe    

Python Version:

3.6.3    

Python Path:

['C:\\pyproject\\onlineshop\\extra_apps',
'C:\\pyproject\\onlineshop\\apps',
'C:\\pyproject\\onlineshop',
'C:\\pyproject\\onlineshop',
'C:\\Program Files\\JetBrains\\PyCharm 2018.1.1\\helpers\\pydev',
'C:\\pyproject\\onlineshop',
'C:\\pyproject\\onlineshop\\apps',
'C:\\pyproject\\onlineshop\\extra_apps',
'C:\\Program Files\\JetBrains\\PyCharm 2018.1.1\\helpers\\pydev',
'C:\\Users\\Administrator\\.PyCharm2018.1\\system\\cythonExtensions',
'E:\\Evns\\Vueshop1\\Scripts\\python36.zip',
'E:\\Evns\\Vueshop1\\DLLs',
'E:\\Evns\\Vueshop1\\lib',
'E:\\Evns\\Vueshop1\\Scripts',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\Lib',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\DLLs',
'E:\\Evns\\Vueshop1',
'E:\\Evns\\Vueshop1\\lib\\site-packages',
'C:\\Program Files\\JetBrains\\PyCharm '
'2018.1.1\\helpers\\pycharm_matplotlib_backend']
   

Server time:

星期三, 18 四月 2018 12:27:58 +0800    




写回答

1回答

_迷失

提问者

2018-04-19

Django降级已解决

0
1
bobby
我已经录制了 将课程升级到django2.0的视频, 最近会放上去的
2018-04-19
共1条回复

Python前后端分离开发Vue+Django REST framework实战

Django REST framework课程视频,RESTFul API前后端分离开发

2873 学习 · 2457 问题

查看课程