{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Adds server-side Datatables support to Django REST Framework APIs, enabling searching, filtering, ordering, and pagination through a single `?format=datatables` query parameter.","skillfed_tags":["datatables","django-integration","rest-api"],"use_cases":["Render Django model data in an interactive HTML table with server-side search, sort, and pagination without writing a separate API.","Add Datatables UI to an existing Django REST Framework API by enabling the format parameter on current viewsets.","Filter and display related model fields (e.g., artist.name) in a Datatables column with automatic ORM query handling.","Support POST requests from Datatables clients while keeping the same API endpoint for GET requests.","Optimize large dataset display by offloading pagination and filtering to the server instead of loading all rows client-side."],"what_it_does":"This package bridges Django REST Framework and the Datatables JavaScript library by providing a custom renderer and filter backend that translate Datatables' server-side request format into DRF-compatible queries. When you add the DatatablesRenderer to your REST_FRAMEWORK settings and call your existing API with `?format=datatables`, it returns JSON structured exactly as Datatables expects, handling search terms, column filters, sort order, and pagination automatically.\n\nYour API remains unchanged and fully functional for non-Datatables clients\u2014the Datatables format is opt-in via the query parameter. The package handles field serialization, nested relationships, and provides configuration options like `datatables_always_serialize` to control which fields appear in the response regardless of client requests.","worth_installing":"Yes. This package solves a specific, common problem\u2014integrating Datatables with Django REST Framework\u2014with low install friction, active maintenance, no known vulnerabilities, and a permissive license. It's production-stable (Development Status 5) and widely used (top 15000 PyPI packages). Install it if you need server-side Datatables support for a DRF project."},"id":"djangorestframework-datatables","links":{"html":"https://skillfed.io/packages/djangorestframework-datatables","md":"https://skillfed.io/packages/djangorestframework-datatables.md","pypi":"https://pypi.org/project/djangorestframework-datatables/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-06-14","license_spdx":null,"license_treatment":"permissive","name":"djangorestframework-datatables","python_support":"unspecified","summary":"Seamless integration between Django REST framework and Datatables (https://datatables.net)"},"popularity":{"monthly_downloads":218560,"position":9339,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.2"}
