ABOUT TOPICS CATEGORIES ARCHIVE BLOG HUB
Topic

Django REST Framework

/topic/django-rest-framework/

Related Posts
6
Status
Strengthening

Django REST Framework (DRF) is a powerful, Python-based web API framework for building RESTful APIs with Django. It provides serialization, class-based views, authentication, and permission management, enabling rapid development and consistent code. Ideal for decoupled architectures like mobile apps and SPAs, DRF is highly extensible and widely adopted as the standard API development tool in the Django ecosystem.

Related Posts

Posts that are directly connected to this topic.

2026-03-16 DRF

Dive into DRF's built-in authenticator source code to uncover the core authentication philosophy of Django and DRF. This series kicks off with BasicAuthentication, highlighting the critical `authenticate_header` method and DRF's elegant flexibility, empowering you to build more robust and 'Django-esque' custom authenticators.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant
2026-01-26 DRF

Explore the two main patterns for scope‑based throttling in DRF—using ScopedRateThrottle versus subclassing UserRateThrottle. Understand where each pattern applies, how they differ in code structure, extensibility, and error prevention, and choose the right approach for your view‑specific rate limits.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant
2026-01-26 Tutorial

A comprehensive guide to DRF throttling—covering global and view‑specific settings, ScopedRateThrottle, custom throttles, Redis caching, and proxy‑aware IP handling—to boost API performance and security.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant
2025-04-26 Django

Solve Django `gettext_lazy` serialization errors when used as JSON keys. This guide explains why lazy objects cause issues and offers practical solutions: switch to `gettext`, use explicit `str()` conversion, or delegate translation to the client-side for robust i18n.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant
2025-02-06 Programming

Why does JSON reign supreme in API communication, while YAML is favored for human-readable configurations? This article explores the origins, strengths, and weaknesses of both JSON and YAML, comparing their distinct roles in modern data exchange and system setup to clarify their widespread adoption.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant
2024-11-04 DRF

Unpack the essential differences between DRF's `Response` and Django's `JsonResponse`. This guide covers their distinct origins, core features like content negotiation, and serialization convenience, with code examples. Learn why `Response` is often preferred for REST APIs, even for simple JSON, streamlining your Django development.

Author: whitedec Language: ko, en, ja, fr, de, es, ru, nl, zh-hans, zh-hant

Related Images

Images collected from posts connected to this topic.