render()与render_to_response()均是django中用来显示模板页面的,但是在django1.3之后,render()便比render_to_response()更加招人待见!最明显的就是前者会自动使用RequestContext,而后者需要coding进去,例如:

render(request,'share.html', {'registAdd': registAdd})
render_to_response('share.html',{'registAdd':registAdd},context_instance = RequestContext(request)