--- id: dj-datatables-view version: "0.1.8" license: MIT license_treatment: permissive maintenance: abandoned --- # dj-datatables-view — Django datatables view fork from django-datatables-view License: permissive · Maintenance: abandoned · Downloads: 238.2K/mo ## What it is and what it does dj-datatables-view is a Django view base class that bridges your Django models and the DataTables JavaScript library for server-side table rendering. It handles the request/response cycle that DataTables expects: parsing sort and filter parameters from the client, applying them to your queryset, and returning paginated JSON. You subclass BaseDatatableView, define your model and columns, and optionally override methods like filter_queryset and render_column to customize behavior. The package simplifies what would otherwise be boilerplate—converting Django querysets into the exact JSON format DataTables expects, respecting the library's sorting and filtering protocol, and managing pagination limits. It works with Django 2, 3, and 4 and supports Python 3.5 through 3.10, though it has not been maintained since early 2022. Use it for: - Build a server-side paginated table in Django that filters and sorts large datasets without loading all records into the browser. - Integrate DataTables into an existing Django view with minimal boilerplate by inheriting BaseDatatableView. - Render custom HTML or formatted values in table cells by overriding render_column while keeping sorting and filtering automatic. - Protect your site from abuse by enforcing a max_display_length limit on records returned per request. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Django base view for server-side DataTables processing, handling sorting, filtering, and JSON output generation for DataTables 1.9, 1.10, and 1.11. Yes, if you are actively using DataTables 1.9–1.11 with Django 2–4 and do not need ongoing maintenance. The package is stable and has no known vulnerabilities, but it is abandoned and will not receive updates for newer Django or DataTables versions. Consider it only for legacy projects or as a reference implementation; for new projects, evaluate whether a modern table library or a fresh DataTables integration is more appropriate. ## Install pip install dj-datatables-view uv add dj-datatables-view poetry add dj-datatables-view ## Installing dj-datatables-view Before you install: Low install friction with no runtime dependencies. However, the package is marked as abandoned with no releases since 2022-02-24 and no recent maintenance activity, so expect no updates or bug fixes going forward. License in practice: MIT license is permissive and imposes minimal restrictions; you can use, modify, and distribute this package freely in commercial and private projects. Quickstart: pip install dj-datatables-view from dj_datatables_view.base_datatable_view import BaseDatatableView class OrderListJson(BaseDatatableView): model = MyModel columns = ['number', 'user', 'state'] order_columns = ['number', 'user', 'state'] Requires Django 2+ and Python 3.5+; DataTables library must be configured on the client side to send requests to the view. Verify before relying: - Whether the package works with DataTables versions beyond 1.11.* or modern DataTables 2.x - Compatibility status with Django 5+ (classifiers only list up to 3.10 Python support) - Whether security issues in abandoned state have been identified by the community ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 238.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django datatables server-side view, datatables json api django, server-side table sorting filtering, django datatable processing, datatables ajax backend django, django-integration, datatables-backend [View on SkillFed](https://skillfed.io/packages/dj-datatables-view) · [View on PyPI](https://pypi.org/project/dj-datatables-view/)