﻿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
33542	TemplateResponse example missing definition of request	phisp	nobody	"In https://docs.djangoproject.com/en/4.0/ref/template-response/

{{{
>>> t = TemplateResponse(request, 'original.html', {})
}}}


""NameError: name 'request' is not defined""

How can I define request by the shell? HttpRequest?

A link how to define the request in the shell would be appreciated. I know Documentation isn't a tutorial, annoying is this happens very often and a deeper understanding with the shell would be helpful.

Thanks for your work"	Bug	closed	Documentation	4.0	Normal	invalid	TemplateResponse request		Unreviewed	0	0	0	0	1	0
