-
DescriptionAfter upgrading to Starlette 1.0.0, FastAPI applications using Jinja2 templates fail with: at Environment
Steps to reproduce
WorkaroundPin NotesThis appears to be related to breaking changes in Starlette 1.0.0's Detected in production during a routine deployment where pip resolved Starlette 1.0.0 instead of 0.52.x. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
|
@boluda, please follow repository rules and don't open issues, open discussion instead |
Beta Was this translation helpful? Give feedback.
-
|
I just upgraded to Starlette v1.0 and ran FastAPI tests, all tests pass. Could you please share a complete code example that fails? |
Beta Was this translation helpful? Give feedback.
-
|
The OP is probably using the old API that was deprecated some years ago, and it was removed in 1.0. |
Beta Was this translation helpful? Give feedback.
-
|
You are absolutely right, @Kludex. We were indeed using the old Sorry for the noise and thanks for the quick help! |
Beta Was this translation helpful? Give feedback.
-
|
@YuriiMotov Sorry about that! First time contributing here, I missed the guidelines. Will open a discussion next time. Thanks for converting it! |
Beta Was this translation helpful? Give feedback.
-
|
fastapi>=0.114.0,<0.115.0 # Pin: Starlette 0.41+ breaks TemplateResponse(name, dict) signature |
Beta Was this translation helpful? Give feedback.
The OP is probably using the old API that was deprecated some years ago, and it was removed in 1.0.