Back to Browse

Writing Filter Backends in Django REST Framework!

5.2K views
Nov 29, 2024
5:16

โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes โญTop resource to learn Python - https://datacamp.pxf.io/kOjKkV โญ In this video, we'll learn how to define a CUSTOM Django REST Framework filter backend for encapsulating re-usable filtering logic. We'll see how to inherit from BaseFilterBackend and write a simple backend for our Product view. Starter Code: https://github.com/bugbytes-io/drf-course-api ๐—ฆ๐—ผ๐—ฐ๐—ถ๐—ฎ๐—น ๐— ๐—ฒ๐—ฑ๐—ถ๐—ฎ: ๐Ÿ“– Blog: https://bugbytes.io/posts/ ๐Ÿ‘พ Github: https://github.com/bugbytes-io/drf-course-api ๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป: Starter Code: https://github.com/bugbytes-io/drf-course-api DRF Filtering: https://www.django-rest-framework.org/api-guide/filtering/ django-filter: https://django-filter.readthedocs.io/en/stable/ DRF/django-filter integration: https://django-filter.readthedocs.io/en/stable/guide/rest_framework.html #python #django #webdevelopment #djangorestframework

Download

0 formats

No download links available.

Writing Filter Backends in Django REST Framework! | NatokHD