render_to_repense

render_to_response() 的第一个参数必须是要使用的模板名称。 如果要给定第二个参数,那么该参数必须是为该模板创建 Context 时所使用的字典。 如果不提供第二个参数, render_to_response() 使用一个空字典。

posted @ 2015-10-22 21:06  gopher-lin  阅读(134)  评论(0编辑  收藏  举报