Skip to content

fix: align Jinja2Templates.TemplateResponse with Starlette 0.40+ API#14

Open
BAXTOR95 wants to merge 1 commit into
filiksyos:mainfrom
BAXTOR95:starlette-fix
Open

fix: align Jinja2Templates.TemplateResponse with Starlette 0.40+ API#14
BAXTOR95 wants to merge 1 commit into
filiksyos:mainfrom
BAXTOR95:starlette-fix

Conversation

@BAXTOR95

Copy link
Copy Markdown

Starlette now expects (request, name, context) instead of (name, context) with request inside the context dict. The old call order passed the context dict as the template name and caused Jinja2 to raise TypeError: unhashable type: 'dict' and HTTP 500 on rendered pages.

Update all call sites and the partial in process_query accordingly.

Starlette now expects (request, name, context) instead of (name, context)
with request inside the context dict. The old call order passed the
context dict as the template name and caused Jinja2 to raise
TypeError: unhashable type: 'dict' and HTTP 500 on rendered pages.

Update all call sites and the partial in process_query accordingly.
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.

1 participant