code: def render_to_string(self, *args, **kwargs):
          
          try:
              template_name, args = args[0], args[1:]
          except IndexError:
              raise TypeError('name of template required')
          return self.get_template(template_name).render(*args, **kwargs)
docs: Load and render a template into a unicode string.