def some_view(request):
return render_to_response('my_template.html', my_data_dictionary, context_instance=RequestContext(request))
请问有高人知道最后一个参数 context_instance=RequestContext(request) 的具体意义和用法吗 看别人的代码经常看到 但是不知道这个的具体用处 求解答
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#django.shortcuts.render_to_response
官方文档: