Solve Django render () got an unexpected keyword argument 'renderer' problem

When we use the Django development a personal website, if used Ueditor, sometimes you encounter this problem.

Solutions are as follows.

We start the project, released into the article page. Prompt an error:

render() got an unexpected keyword argument ‘renderer’

There are tips on the wrong page, the wrong place following file is 93 lines.

F: \ course \ myblog \ myblogvenv \ lib \ site-packages \ django \ forms \ boundfield.py in as_widget, line 93
I used here is the latest version of Django2.1.1 so error, the solution is simple. Open 93 lines of the file, you can comment this line.

After modified, refresh the page, you can see our rich text editor normal display.

Note that if the project is already deployed, the best time to re-deploy

----------------
Disclaimer: This article is CSDN blogger "Xiao Song is it" original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/xiaosongshine/article/details/88548348

Released six original articles · won praise 0 · Views 67

Guess you like

Origin blog.csdn.net/qq_41502780/article/details/104061140