--- id: django-datatables-view version: "1.20.0" license: MIT license_treatment: permissive maintenance: abandoned --- # django-datatables-view — Django datatables view License: permissive · Maintenance: abandoned · Downloads: 167.2K/mo ## What it is and what it does django-datatables-view is a Django view base class that bridges your Django models and the DataTables JavaScript library, handling the server-side logic that DataTables expects when configured for server-side processing. It abstracts away the boilerplate of parsing DataTables' sorting and filtering parameters, building filtered querysets, and returning properly formatted JSON responses. You inherit from BaseDatatableView, define your model and columns, override a few methods to customize filtering and rendering, and wire it into your URL configuration. The view then handles pagination, sorting by column, global search, and custom filtering—all the mechanics that would otherwise require manual request parameter parsing and queryset manipulation. It's designed for tables with large datasets where client-side processing would be inefficient. Use it for: - Display large database tables in Django templates with server-side sorting and filtering to avoid loading all records into the browser. - Build admin-like data grids where users can search and sort without page reloads, backed by a Django ORM queryset. - Implement custom column rendering (e.g., formatted dates, HTML links) while maintaining DataTables' sorting and filtering. - Protect against denial-of-service attacks by limiting the number of records returned per request using max_display_length. - Add role-based row filtering by overriding filter_queryset to apply user-specific permissions before DataTables processes the data. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Django view base class that handles server-side processing for DataTables, managing sorting, filtering, and JSON output generation. No—the package is abandoned (last release 2022-04-05, no recorded commits since). While it carries no known vulnerabilities and has low install friction, the lack of maintenance means it will not receive bug fixes, security patches, or updates for newer Django or DataTables versions. Consider a maintained alternative or fork if you need server-side DataTables integration. ## Install pip install django-datatables-view uv add django-datatables-view poetry add django-datatables-view ## Installing django-datatables-view Before you install: Low install friction with a single runtime dependency on django. However, the package is abandoned—last release was 2022-04-05 and no commits have been recorded since. Use only if you can maintain it yourself or are confident it works with your Django version. License in practice: MIT license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects. Quickstart: pip install django-datatables-view from django_datatables_view.base_datatable_view import BaseDatatableView class MyTableJson(BaseDatatableView): model = MyModel columns = ['field1', 'field2'] order_columns = ['field1', 'field2'] Requires Django to be installed. Designed for DataTables 1.9.x and 1.10.x; compatibility with newer DataTables versions is not documented. Verify before relying: - Compatibility with DataTables versions released after 1.10.x - Whether the package works with modern Django versions (5.0+) - Active community support or alternative maintained forks ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 167.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django datatables server-side processing, datatables json view django, server-side table filtering django, datatables sorting filtering django, django datatable ajax view, datatables, server-side-processing, abandoned [View on SkillFed](https://skillfed.io/packages/django-datatables-view) · [View on PyPI](https://pypi.org/project/django-datatables-view/)