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
-
I found one weird thing here.
TemplateResponse
class requiresrequest
to be present in the template context. This is a mandatory option.In my opinion, it makes sense to explicitly pass
request
toTemplateResponse
as it will make this dependency very obvious.Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions