When developing personal websites using Django, we sometimes encounter this problem if we use Ueditor.

The solution is as follows.

We launch the project and go to the post page. Error message:

render() got an unexpected keyword argument 'renderer'
Copy the code

The error page shows the error on line 93 of the file below.

F:\course\myblog\myblogvenv\lib\site-packages\django\forms\boundfield.py in as_widget, line 93
Copy the code

I am using the latest version of Django2.1.1, so I reported an error, the solution is very simple. Open line 93 of the file and comment on it.

After that, refresh the page and see that our rich text editor displays normally.

Note that if the project is already deployed, it is best to redeploy it