1. 程式人生 > >Django報錯:TypeError: render() got an unexpected keyword argument 'renderer'

Django報錯:TypeError: render() got an unexpected keyword argument 'renderer'

這是由於整合DjangoUeditor時出錯:
需要修改虛擬環境下的:boundfield.py檔案:
.virtualenvs/虛擬環境檔案/lib/python3.5/site-packages/django/forms/boundfield.py


89        return widget.render(
90            name=self.html_initial_name if only_initial else self.html_name,
91            value=self.value(),
92            attrs=attrs,
93            # renderer=self.form.renderer,(93行處註釋掉,就能正常運行了)
94        )