render_to_string() got an unexpected keyword argument 'context_instance'
或
context must be a dict rather than RequestContext
解决办法:
返回的context应该是字典
context = {'booklist': booklist}
render_to_string() got an unexpected keyword argument 'context_instance'
或
context must be a dict rather than RequestContext
解决办法:
返回的context应该是字典
context = {'booklist': booklist}