Skip to content

Request should be part of the context dictionary#10869

Closed
unrealnerd wants to merge 4 commits intofastapi:masterfrom
unrealnerd:patch-1
Closed

Request should be part of the context dictionary#10869
unrealnerd wants to merge 4 commits intofastapi:masterfrom
unrealnerd:patch-1

Conversation

@unrealnerd
Copy link

Under section Using Jinja2Templates

The sample code is using request as a parameter which is wrong. request should be part of the context dictionary.

@tiangolo
Copy link
Member

📝 Docs preview for commit 79f4668 at: https://0ba6aaba.fastapitiangolo.pages.dev

@tiangolo
Copy link
Member

📝 Docs preview for commit e5b1761 at: https://932aba69.fastapitiangolo.pages.dev

@tiangolo
Copy link
Member

It seems you are using an older version of Starlette and FastAPI, after you upgrade to the latest you will see that it's now a proper parameter as in the docs. 🤓

So I'll pass on this one. ☕

@tiangolo tiangolo closed this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants