We've been implementing KeinaSystem, an agricultural management system with Django/Next.js and Docker: Completed: - Day 1-2: Docker setup, Django configuration (REST, JWT, CORS, PostGIS, Japan timezone) - Day 3: Data models (OfficialKyosaiField, OfficialChusankanField, Field with ManyToMany, Crop, Variety, Plan) - Day 4: Import API endpoints for ODS files - Day 5: init_crops command, serializers, ViewSets, summary/copy APIs Current Issue: - Day 6: PDF generation (/api/reports/kyosai/2025/) is returning HTTP 500 error Next Step: Debug the PDF generation error by checking backend container logs to see the specific exception. Want me to check the container logs to diagnose the PDF 500 error?
8 lines
233 B
Python
8 lines
233 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('kyosai/<int:year>/', views.generate_kyosai_pdf, name='kyosai_pdf'),
|
|
path('chusankan/<int:year>/', views.generate_chusankan_pdf, name='chusankan_pdf'),
|
|
]
|