Render (with RequestContext)

1
2
3
4
5
from django.shortcuts import render_to_response
from django.template.context import RequestContext

def render(request,template,context={}):
	return render_to_response(template,context,context_instance=RequestContext(request))

More like this

  1. Debug SQL Query in Template by dario.agliottone 1 year ago
  2. simplified render_to_response with RequestContext by jasongreen 3 years, 4 months ago
  3. Template Query Debug by insin 6 years, 2 months ago
  4. render_with decorator by tobias 4 years, 8 months ago
  5. render_to by asolovyov 4 years, 11 months ago

Comments

ubernostrum (on July 27, 2008):

See also: the same thing, but with more discussion.

#

(Forgotten your password?)