django1.8使用django-admin管理后台
1.需要安装的包
# django-xadmin-1.8.zip https://github.com/sshwsfc/xadmin/tree/django1.8
django-xadmin (0.5.0)
django-crispy-forms (1.6.0) #大于1.4的版本即可
django-reversion (1.8.7)
其中django-admin在github的master分支的代码只支持django1.7版本的,所以直接安装使用会有各种各样的错误(真心搞了好久。。。)https://github.com/sshwsfc/xadmin/issues/273
所以需要选择django-xadmin的1.8的那个分支的代码,地址https://github.com/sshwsfc/xadmin/tree/django1.8
下载压缩包,然后到对应目录下
pip install django-xadmin-1.8.zip
还有django-reversion (1.8.7)的版本需要注意,到github查看https://github.com/etianen/django-reversion/blob/master/CHANGELOG.rst,
也有多个分支适配不同的django版本,这里我选择的1.8.7的版本可以正常使用。
2.配置xadmin
setting