﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18369	Documentation error with django.shortcuts.render() function	qsolo825@…	Tim Graham	"I suppose there is one tiny error in description of {{{django.shortcuts.render}}} function in Django documentation [[BR]]    https://docs.djangoproject.com/en/1.4/topics/http/shortcuts/ [[BR]]
It's said there that its second argument named {{{template}}}. As I see from sources this function internally passes [[BR]]
almost all its argument to {{{loader.render_to_string}}} using *args and !**kwargs like {{{render_to_response}}} do. [[BR]]
But {{{loader.render_to_string}}} is defined as [[BR]]
    {{{render_to_string(template_name, dictionary=None, context_instance=None)}}}[[BR]]
so if you call {{{render}}} using key-words arguments e.g. [[BR]]
    {{{render(request=request, template='path/to/template.html')}}} [[BR]]
or attempt to use it as simple view instead of !TemplateView e.g [[BR]]
    {{{url(r'^some-url/$', render, {'template': 'path/to/template.html'}) }}}[[BR]]
you get {{{TypeError}}} with message {{{""render_to_string() got an unexpected keyword argument 'template'""}}}.[[BR]]
I think it'll be better to use {{{template_name}}} as name of argument instead of {{{template}}} in documentation for the {{{render}}} shortcut.[[BR]]
"	Cleanup/optimization	closed	Documentation	1.4	Normal	fixed			Accepted	0	0	0	0	0	0
