starlette 버전업에 따른 템플릿 함수파라미터 변경사항
#### 배경
fastapi 108.0 에서 starlette 버전이 0.29로 업데이트되었습니다.
[starlette issue Version 1.0.0 ](https://github.com/encode/starlette/pull/2384)
https://github.com/encode/starlette/pull/2191
https://github.com/tiangolo/fastapi/releases
#### 이슈 내용
```
이전 -> TemplateResponse('index.html', {'request': request})
이후 -> TemplateResponse(request, 'index.html')
```
템플릿함수에서 context 에 request 가 빠지고 첫번째 인수로 변경됩니다.
구버전 파라미터는 starlette 1.0에서 삭제됩니다.
https://fastapi.tiangolo.com/advanced/templates/?h=template
Fastapi 문서에는 108 버전 부터 바뀐 부분에 대해 서술되어있습니다.
#### 이슈사항
requirements.txt 의 fastapi 버전표기를 고정 또는
UserTemplate, AdminTemplate, 경고창의 TemplateResponse 변경 필요
fastapi 108.0 에서 starlette 버전이 0.29로 업데이트되었습니다.
[starlette issue Version 1.0.0 ](https://github.com/encode/starlette/pull/2384)
https://github.com/encode/starlette/pull/2191
https://github.com/tiangolo/fastapi/releases
#### 이슈 내용
```
이전 -> TemplateResponse('index.html', {'request': request})
이후 -> TemplateResponse(request, 'index.html')
```
템플릿함수에서 context 에 request 가 빠지고 첫번째 인수로 변경됩니다.
구버전 파라미터는 starlette 1.0에서 삭제됩니다.
https://fastapi.tiangolo.com/advanced/templates/?h=template
Fastapi 문서에는 108 버전 부터 바뀐 부분에 대해 서술되어있습니다.
#### 이슈사항
requirements.txt 의 fastapi 버전표기를 고정 또는
UserTemplate, AdminTemplate, 경고창의 TemplateResponse 변경 필요
게시판 목록
그누보드6 이슈
좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 154 |
seiblog-nandsoft
|
1년 전 | 295 | |
| 153 |
seiblog-nandsoft
|
1년 전 | 338 | |
| 152 |
seiblog-nandsoft
|
1년 전 | 378 | |
| 151 |
seiblog-nandsoft
|
1년 전 | 265 | |
| 150 |
kitrio
|
1년 전 | 219 | |
| 149 |
seiblog-nandsoft
|
1년 전 | 271 | |
| 148 |
seiblog-nandsoft
|
1년 전 | 172 | |
| 147 |
seiblog-nandsoft
|
1년 전 | 321 | |
| 146 |
seiblog-nandsoft
|
1년 전 | 177 | |
| 145 |
kjy7105
|
1년 전 | 195 | |
| 144 |
kjy7105
|
1년 전 | 171 | |
| 143 |
seiblog-nandsoft
|
1년 전 | 198 | |
| 142 |
seiblog-nandsoft
|
1년 전 | 154 | |
| 141 |
seiblog-nandsoft
|
1년 전 | 186 | |
| 140 |
xperia-query
|
1년 전 | 225 | |
| 139 |
seiblog-nandsoft
|
1년 전 | 157 | |
| 138 |
Letm3through
|
1년 전 | 347 | |
| 137 |
seiblog-nandsoft
|
1년 전 | 194 | |
| 136 |
seiblog-nandsoft
|
1년 전 | 170 | |
| 135 |
seiblog-nandsoft
|
1년 전 | 193 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기