What You Should Know About Django REST Framework

When I started writing Django REST Framework code in 2017, there was a lot I didn't know, like how class-based views worked and what a serializer was.

After 3+ years of using DRF, I want to share the things I've learned that make writing DRF code easier and faster for me. You will learn how to save time and lines of code by using DRF's built-in viewsets (and what a viewset is), when to skip the viewset and use a built-in generic `APIView`, and how to add custom endpoints (actions) to your viewsets. You'll also learn how modular DRF can be when you customize built-in methods or use different serializers for different parts of your viewset, and how tools like Classy DRF can help.

You will walk away from this talk ready to start your first DRF project, make your existing projects simpler and cleaner, or (at the very least) with a better understanding of how a class-based view works.

You will get the most out of this talk if you have beginner-level experience in Python and Django. A tenuous, vague understanding of how class-based views in Django work would be helpful, but is not necessary. Having completed a Django REST Framework tutorial would also be helpful.

About Lacey Williams Henschel

Lacey Williams Henschel is a Django consultant with REVSYS with about 10 years of experience programming in Python and Django. She's a skilled technical writer, coding teacher, workshop mentor, and conference speaker who is passionate about helping complex topics go from "intimidating" to "totally doable" for people. Previously, she's spoken at DjangoCon US, DjangoCon Europe, PyGotham, Wagtail Space US, and PostgresOpen, among other conferences. She lives in Oregon with her husband, daughter, and two cats.