dj-datatables-view
Django datatables view fork from django-datatables-view
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 on this page — 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
dj-datatables-view on PyPI
pip
pip install dj-datatables-viewuv
uv add dj-datatables-viewpoetry
poetry add dj-datatables-viewInstalling 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 the current Python release (>=3.5,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,632 days since the last release |
| First released | |
| Downloads | 238,158/month — #8,945 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dj_datatables_view-0.1.8-py3-none-any.whl
Keywords: django, datatable, view
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
django-datatables-viewProvides a Django view base class that handles…
permissive · top 15,000 on PyPI
django-tables2django-tables2 generates HTML tables from…
permissive · top 5,000 on PyPI
djangorestframework-datatablesAdds server-side Datatables support to Django…
permissive · top 15,000 on PyPI
django-htmxProvides Django integration utilities for htmx,…
permissive · top 5,000 on PyPI
django-admin-list-filter-dropdownRenders Django admin list filters as dropdown…
permissive · top 5,000 on PyPI
djangorestframework-bulkAdds bulk create, update, and delete operations…
permissive · top 15,000 on PyPI
django-filterDjango-filter adds dynamic QuerySet filtering…
permissive · top 5,000 on PyPI
drf-excelAdds an Excel spreadsheet (xlsx) renderer to…
permissive · top 15,000 on PyPI
djangorestframework-filtersExtends Django REST Framework with advanced…
permissive · top 15,000 on PyPI
djangoqlDjangoQL provides an advanced search query…
permissive · top 15,000 on PyPI