render_to_string() got an unexpected keyword argument 'context_instance'的解决方法
来源:互联网 发布:照片缩小软件手机 编辑:程序博客网 时间:2024/06/06 06:43
参考资料:
render_to_string() got an unexpected keyword argument ‘status’
TypeError at /post/ render_to_response() got an unexpected keyword argument ‘context_instance’
Django error: render_to_response() got an unexpected keyword argument ‘context_instance’
The context_instance parameter in render_to_response was deprecated in Django 1.8, and removed in Django 1.10.
The solution is to switch to the render shortcut, which automatically uses a RequestContext. Update your imports and view as follows. Note that render takes the request object as its first argument.
查看了一下 源码:
改一下参数就好了
4 0
- render_to_string() got an unexpected keyword argument 'context_instance'的解决方法
- render_to_response() got an unexpected keyword argument 'context_instance'
- __init__() got an unexpected keyword argument 'context processor'解决方法
- TypeError: exchange_declare() got an unexpected keyword argument 'type'的解决办法
- django got an unexpected keyword argument maxlength
- __init__() got an unexpected keyword argument 'mimetype'
- django-got an unexpected keyword argument ‘maxlength’
- pivot_table() got an unexpected keyword argument 'rows'
- parse() got an unexpected keyword argument 'transport_encoding'
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: concat() got an unexpected keyword argument 'axis'
- 报错TypeError: pool_2d() got an unexpected keyword argument 'ws'
- TypeError: histogram() got an unexpected keyword argument 'new'问题
- TypeError: __init__() got an unexpected keyword argument 'syntax'
- TypeError:__init__() got an unexpected keyword argument 'xxx'
- TypeError: pivot_table() got an unexpected keyword argument 'rows'
- access转成sqlsever后无法添加数据,解决方法参考
- oracle process和session
- 校招准备系列:每天一道算法题(3)
- 面试题总结 —— JAVA高级工程师
- 每日三题-Day3-C(HDU 1257 最少拦截系统 最长上升子序列O(nlogn) )
- render_to_string() got an unexpected keyword argument 'context_instance'的解决方法
- 重温Volley源码(二):重试策略
- Collaborative Filtering 协同过滤小结 part-2:SVD
- Sublime Test 使用小结
- ajax不执行success回调而是执行error回调
- 目标跟踪最前沿算法资料收集
- Penn Treebank 词性标注集
- UniversalImageLoader源码解析之总体流程
- LinearLayout和RelativeLayout的常见属性