Skip to content

Commit

Permalink
Merge pull request #309 from gnuboard/fix/template_response
Browse files Browse the repository at this point in the history
fix: starlette 버전이 0.29 이상일 경우, template_response 함수 오류 수정
  • Loading branch information
kagla authored Jan 17, 2024
2 parents 639acae + b422556 commit cc230c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ def template_response(
# 처음 설치 시에는 DB가 없으므로 새로운 템플릿 응답 객체를 생성합니다.
template = Jinja2Templates(directory=TEMPLATES_DIR)
template.env.globals["theme_asset"] = theme_asset
return template.TemplateResponse(template_html, context, status_code)
return template.TemplateResponse(
name=template_html,
context=context,
status_code=status_code
)

0 comments on commit cc230c0

Please sign in to comment.