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. simplified render_to_response with RequestContext by jasongreen 2 years, 4 months ago
  2. render_to_response wrapper by Magus 5 years, 3 months ago
  3. render_with decorator by tobias 3 years, 8 months ago
  4. render_to by asolovyov 3 years, 11 months ago
  5. Use MEDIA_URL in 500 error page by bthomas 3 years, 6 months ago

Comments

ubernostrum (on July 27, 2008):

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

#

(Forgotten your password?)