shlogg · Early preview
Kihuni @skihuni

Django REST Framework Task Manager API Personalization

Updated Task Model with created_by field added to link tasks to their creators. Modified views for user ownership & updated serializer to make created_by read-only. Tested with Postman to confirm ownership.

Welcome back to our Django REST Framework (DRF) series! In Part 1, we set up our Django project with DRF. Part 2 added CRUD functionality for tasks, and Part 3 secured it with token authentication. In Part 4, we’re personalizing our Task Manager API—ensuring each user only sees and manages their tasks. This step makes your API truly user-specific!
By the end, your API will link tasks to their creators and restrict access accordingly, all tested with Postman. Ready to jump in?
Let’s dive in! 

  
  
  Table of Contents

Step 1: Update the Task Model
Step 2: Modify Views for User Ownership
Step...