Django Shortcuts: render
- render
- render(request, template[, dictionary][, context_instance][, content_type][, status][, current_app])
-
- Combines a given template with a given context dictionary and returns an HttpResponse object with that rendered text.
- render() is the same as a call to render_to_response() with a context_instance argument that forces the use of a RequestContext.
- return render_to_response(template, locals(), context_instance=RequestContext(request))
- return render(request, template, locals())
Category: Django



Leave a Comment :
Leave a Comment