首页Django正文

部署typeidea代码报错

提问未结 1 49
huochai
huochaiDjango实战会员2018年7月14日 23:46
很懒 什么都没有留下

今天从GitHub上clone了typeidea项目。python2.7虚拟环境。然后切换到了第十章的分支。

并安装了相关依赖包,但是启动时候报错: https://sss.the5fire.com/v_the5fire/28cefe6068a630d6aa9b89883e40fbe3.png

查了下原因,说是django 1.11 Lib\site-packages\django\forms\widgets.py 中已经没有了RadioFieldRenderer这个类 好多类已经修改,建议使用django低版本。

请问胡大是怎么解决的。

回帖
  • the5fire
    2018年7月15日 00:14

    xadmin的问题,如果使用Django1.11的话,直接安装:

    pip install https://github.com/the5fire/django-xadmin/archive/0.6.1.zip
    

    如果是Django2.0的版本,直接安装:

    pip install https://github.com/the5fire/django-xadmin/archive/2.0.1.zip