What is the difference between render and render-to-response

Render:

it will send the variable in context to the html page
Syntax-
return render(request,"x.html",response)


Render to response:it will also send the result like some validation
Syntax-
return render_to_response("x.html",context)



No comments:

Post a Comment