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))

Comments

ubernostrum (on July 27, 2008):

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

#

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.