def show_reference_template(request, template):
 try:
  context = {'disable_courseware_js': True, 'uses_pattern_library': True}
  context.update(request.GET.dict())
  return render_to_response(template, context)
 except TopLevelLookupException:
  return HttpResponseNotFound("Couldn't find template {template}".format(template=template))

def show_reference_template ( request , template ) : try : context = { 'disable_courseware_js' : True , 'uses_pattern_library' : True } context . update ( request . GET . dict ( ) ) return render_to_response ( template , context ) except TopLevelLookupException : return HttpResponseNotFound ( "Couldn't find template {template}" . format ( template = template ) )
shows the specified template as an html page .