class Student: def __init__(self, id, name): self.id = id self.name = nameif __name__ == '__main__': s = Student(1, 'george') print(s.id, s.name)
# index.html<script…
主要是針對django 和 React 結合所需要的設定步驟紀錄
針對CRUD + List功能使用function-based view來實作
2. 增加Django project and application + settings.py + templates
首先你需要新增django project and app
> django-admin…