Python异常:Django2.0.5--context must be a dict rather than Context/RequestContext.
最近用 Python django做 web 开发的时候发现 RequestContext 并不能跟看到的一些资料一样通过 Template 的 render方法调用,事实上有一些资料中已经指出来了,不仅仅是 RequestContext,其实Context也不可以,直接代码通常如下:t = loader.get_template('context_request.html')
c = Reque...
原创
2018-06-29 15:29:59 ·
1430 阅读 ·
0 评论