#33542: executing the shell commands promts an error
-------------------------------------+-------------------------------------
               Reporter:  phisp      |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.0
  Documentation                      |       Keywords:  TemplateResponse
               Severity:  Normal     |  request
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 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

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33542>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.d33f47adace534e75c522ab4cfa27d3e%40djangoproject.com.

Reply via email to