Return an HttpResponse whose content is filled with the result of calling django.template.loader.render_to_string() with the passed arguments.
(
request, template_name, context=None, content_type=None, status=None, using=None
)
| 18 | |
| 19 | |
| 20 | def render( |
| 21 | request, template_name, context=None, content_type=None, status=None, using=None |
| 22 | ): |
| 23 | """ |
| 24 | Return an HttpResponse whose content is filled with the result of calling |
| 25 | django.template.loader.render_to_string() with the passed arguments. |
| 26 | """ |
| 27 | content = loader.render_to_string(template_name, context, request, using=using) |
| 28 | return HttpResponse(content, content_type, status) |
| 29 | |
| 30 | |
| 31 | def redirect( |