其他分享
首页 > 其他分享> > xadmin使用时报错AttributeError: module 'xadmin' has no attribute 'site'

xadmin使用时报错AttributeError: module 'xadmin' has no attribute 'site'

作者:互联网

这个是django和xadmin版本不兼容导致的

django的2.0版本,需要使用xadmin2.

推荐使用源码安装,直接pip安装会因为源的问题失败

https://github.com/sshwsfc/xadmin/tree/django2  下载zip格式

把zip文件放到pip目录下,运行下面命令安装:

pip install xadmin-django2

安装成功

标签:xadmin,zip,no,attribute,django2,django,pip,安装
来源: https://www.cnblogs.com/BlackHillNO1/p/10790694.html