Should TemplateResponse receive request object as an argument? #2174
Unanswered
alex-oleshkevich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found one weird thing here.
TemplateResponseclass requiresrequestto be present in the template context. This is a mandatory option.In my opinion, it makes sense to explicitly pass
requesttoTemplateResponseas it will make this dependency very obvious.Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions