Is your feature request related to a problem? Please describe.
For FastAPI>0.108.0, Starlette>0.29.0, we need to create jinja TemplateResponse with the request as a parameter rather than in the context. Otherwise, there are DeprecationWarnings.
Describe the solution you'd like
Provide the request as a parameter rather than in the jinja template context
Add a lower bound to the package versions for fastapi and starlette with the current versions.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Is your feature request related to a problem? Please describe. For FastAPI>0.108.0, Starlette>0.29.0, we need to create jinja
TemplateResponse
with therequest
as a parameter rather than in thecontext
. Otherwise, there are DeprecationWarnings.Describe the solution you'd like
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context docs: https://fastapi.tiangolo.com/advanced/templates/
instead of