From ea26c5a46f6340a7cb9c48cb9818e9119991ad65 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 15 Feb 2026 12:58:41 +0900 Subject: [PATCH] =?UTF-8?q?$=20docker-compose=20exec=20backend=20python=20?= =?UTF-8?q?-c=20"import=20requests;=20r=20=3D=20requests.get('http://local?= =?UTF-8?q?host:8000/api/reports/kyosai/2025/');=20print(f'HTTP=20{r.statu?= =?UTF-8?q?s=5Fcode}')"=20time=3D"2026-02-15T12:56:23+09:00"=20level=3Dwar?= =?UTF-8?q?ning=20msg=3D"C:\\Users\\akira\\Develop\\keinasystem=5Ft02\\doc?= =?UTF-8?q?ker-compose.yml:=20the=20attribute=20`version`=20is=20obsolete,?= =?UTF-8?q?=20it=20will=20be=20ignored,=20please=20remove=20it=20to=20avoi?= =?UTF-8?q?d=20potential=20confusion"=20HTTP=20200=20Thinking:=20Excellent?= =?UTF-8?q?!=20The=20PDF=20generation=20is=20now=20working=20-=20returning?= =?UTF-8?q?=20HTTP=20200.=20Let=20me=20also=20verify=20the=20PDF=20is=20ac?= =?UTF-8?q?tually=20being=20generated=20with=20content.=20PDF=E7=94=9F?= =?UTF-8?q?=E6=88=90=E3=81=8C=E6=88=90=E5=8A=9F=E3=81=97=E3=81=BE=E3=81=97?= =?UTF-8?q?=E3=81=9F=EF=BC=88HTTP=20200=EF=BC=89=E3=80=82=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E3=82=82=E7=A2=BA=E8=AA=8D=E3=81=97=E3=81=BE=E3=81=99?= =?UTF-8?q?=EF=BC=9A=20#=20Verify=20PDF=20content=20details=20$=20docker-c?= =?UTF-8?q?ompose=20exec=20backend=20python=20-c=20"import=20requests;=20r?= =?UTF-8?q?=20=3D=20requests.get('http://localhost:8000/api/reports/kyosai?= =?UTF-8?q?/2025/');=20print(f'HTTP=20{r.status=5Fcode},=20Size:=20{len(r.?= =?UTF-8?q?content)}=20bytes,=20Content-Type:=20{r.headers.get(\"Content-T?= =?UTF-8?q?ype\")}')"=20time=3D"2026-02-15T12:56:29+09:00"=20level=3Dwarni?= =?UTF-8?q?ng=20msg=3D"C:\\Users\\akira\\Develop\\keinasystem=5Ft02\\docke?= =?UTF-8?q?r-compose.yml:=20the=20attribute=20`version`=20is=20obsolete,?= =?UTF-8?q?=20it=20will=20be=20ignored,=20please=20remove=20it=20to=20avoi?= =?UTF-8?q?d=20potential=20confusion"=20HTTP=20200,=20Size:=2076020=20byte?= =?UTF-8?q?s,=20Content-Type:=20application/pdf=20Thinking:=20The=20PDF=20?= =?UTF-8?q?is=20being=20generated=20successfully.=20Now=20let=20me=20also?= =?UTF-8?q?=20check=20the=20chusankan=20PDF=20endpoint.=20PDF=E7=94=9F?= =?UTF-8?q?=E6=88=90=20OK=EF=BC=8876KB=EF=BC=89=E3=80=82=E4=B8=AD=E5=85=B1?= =?UTF-8?q?=E4=B9=BE=E3=81=A6=E3=82=82=E7=A2=BA=E8=AA=8D=EF=BC=9A=20#=20Te?= =?UTF-8?q?st=20chusankan=20PDF=20endpoint=20$=20docker-compose=20exec=20b?= =?UTF-8?q?ackend=20python=20-c=20"import=20requests;=20r=20=3D=20requests?= =?UTF-8?q?.get('http://localhost:8000/api/reports/chusankan/2025/');=20pr?= =?UTF-8?q?int(f'HTTP=20{r.status=5Fcode},=20Size:=20{len(r.content)}=20by?= =?UTF-8?q?tes')"=20time=3D"2026-02-15T12:56:35+09:00"=20level=3Dwarning?= =?UTF-8?q?=20msg=3D"C:\\Users\\akira\\Develop\\keinasystem=5Ft02\\docker-?= =?UTF-8?q?compose.yml:=20the=20attribute=20`version`=20is=20obsolete,=20i?= =?UTF-8?q?t=20will=20be=20ignored,=20please=20remove=20it=20to=20avoid=20?= =?UTF-8?q?potential=20confusion"=20HTTP=20200,=20Size:=2084419=20bytes=20?= =?UTF-8?q?Thinking:=20Both=20PDF=20endpoints=20are=20working=20now.=20The?= =?UTF-8?q?=20issue=20was=20indeed=20the=20version=20incompatibility=20bet?= =?UTF-8?q?ween=20WeasyPrint=2060.1=20and=20pydyf=200.12.1.=20Upgrading=20?= =?UTF-8?q?to=20WeasyPrint=2068.1=20fixed=20it.=20Let=20me=20update=20the?= =?UTF-8?q?=20requirements.txt=20to=20use=20a=20more=20flexible=20version?= =?UTF-8?q?=20constraint,=20and=20also=20check=20the=20logs=20to=20make=20?= =?UTF-8?q?sure=20there=20are=20no=20errors.=20=E4=BF=AE=E6=AD=A3=E5=AE=8C?= =?UTF-8?q?=E4=BA=86=20=E5=8E=9F=E5=9B=A0:=20WeasyPrint=2060.1=E3=81=A8pyd?= =?UTF-8?q?yf=200.12.1=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E4=BA=92=E6=8F=9B=E6=80=A7=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=E8=A7=A3=E6=B1=BA:=20WeasyPrint=E3=82=9260.1=E3=81=8B=E3=82=89?= =?UTF-8?q?68.1=E3=81=AB=E3=82=A2=E3=83=83=E3=83=97=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=83=88=20-=20/api/reports/kyosai/2025/=20=E2=86=92=20HTTP=20?= =?UTF-8?q?200=20(76KB=20PDF)=20-=20/api/reports/chusankan/2025/=20?= =?UTF-8?q?=E2=86=92=20HTTP=20200=20(84KB=20PDF)=20requirements.txt?= =?UTF-8?q?=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F?= =?UTF-8?q?=EF=BC=88WeasyPrint=3D=3D60.1=20=E2=86=92=20WeasyPrint>=3D60.1?= =?UTF-8?q?=EF=BC=89=E3=80=82=E3=81=93=E3=82=8C=E3=81=A7Day=206=E3=81=AEPD?= =?UTF-8?q?F=E7=94=9F=E6=88=90=E3=81=AF=E5=AE=8C=E4=BA=86=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82=20=E6=AC=A1=E3=81=AE?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E3=81=AB=E7=A7=BB=E3=82=8A=E3=81=BE=E3=81=99?= =?UTF-8?q?=E3=81=8B=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index 318da66..e2d51d7 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -6,6 +6,6 @@ djoser==2.2 djangorestframework-simplejwt==5.3 pandas>=2.1,<3.0 odfpy==1.4 -WeasyPrint==60.1 +WeasyPrint>=60.1 gunicorn>=21.0,<22.0 setuptools<75