Django REST Framework

DRF Introduction

When to use APIs vs templates

Django REST Framework Introduction

TaskBoard started as server-rendered HTML. Django REST Framework (DRF) adds JSON HTTP APIs for SPAs, mobile apps, and integrations—reusing the same models and business rules.

  • Templates + forms — human-facing web UI
  • DRF — machine-facing API with serializers and consistent status codes

Rule of thumb: One Django project, shared models; choose templates or API per client—not duplicate logic in two frameworks.