#33542: TemplateResponse example missing definition of request
-------------------------------------+-------------------------------------
Reporter: phisp | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.0
Severity: Normal | Resolution:
Keywords: TemplateResponse | Triage Stage:
request | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sam):
Based on [https://docs.djangoproject.com/en/dev/internals/contributing
/new-contributors/#first-steps Advice for new contributors], I've been
able to reproduce the bug.
But as [ticket:33542 phisp] says:
>Documentation isn't a tutorial
And I agree with [comment:1 Tim Graham]:
> `TemplateResponse` [...] it says: `request` - An `HttpRequest` instance.
>
> I'm doubtful that further clarification would be helpful, especially
because an `original.html` template isn't likely to be present.
Further explanation would only make sense within a tutorial, describing
the project setup (including `original.html` for example).
I am a Django beginner, with some basic experience in web scraping and no
professional background in computer science.
But I think I would be able to create an
[https://docs.djangoproject.com/en/4.0/ref/request-response/#httprequest-
objects HttpRequest] object, using the source mentioned by Tim.
Therefore regard this ticket as
[https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
tickets/#how-can-i-help-with-triaging "invalid"] and would close it in
this sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/33542#comment:2>
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/063.883acde2b1b5f40ba3043c6833da1a5b%40djangoproject.com.