context must be a dict rather than Context
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了context must be a dict rather than Context相关的知识,希望对你有一定的参考价值。
render_to_string() got an unexpected keyword argument ‘context_instance‘
或
context must be a dict rather than RequestContext
解决办法:
返回的context应该是字典
context = {‘booklist‘: booklist}
以上是关于context must be a dict rather than Context的主要内容,如果未能解决你的问题,请参考以下文章