请问django render_to_response函数参数作用及用法,,def some_vie


def some_view(request):    return render_to_response('my_template.html', my_data_dictionary, context_instance=RequestContext(request))

请问有高人知道最后一个参数 context_instance=RequestContext(request) 的具体意义和用法吗 看别人的代码经常看到 但是不知道这个的具体用处 求解答

https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#django.shortcuts.render_to_response

官方文档:

编橙之家文章,

评论关闭