Registry / web-framework / django-datatables-view

django-datatables-view

JSON →
library1.20.0pypypiunverified

A Django library that provides server-side processing for DataTables jQuery plugin with minimal configuration. Version 1.20.0 supports Django 5.0, last updated in 2023. Release cadence is sporadic.

pip install django-datatables-view
INSTALL
IMPORT
SIG · DJANGO-DATATABLES-
D
django-datatables-view
web-frameworkpythonv1.20.0
Install
3.4s avg
Import
—
Disk
65MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.20.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.3MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
65MB installed
● package 65MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DatatableView
✓ from django_datatables_view import DatatableView
✗ from django_datatables_view import DatatableView

Minimal setup: define a view subclass, specify model and columns, then wire URL.

# views.py from datatableview.views import DatatableView from .models import MyModel class MyModelDatatableView(DatatableView): model = MyModel columns = ['id', 'name', 'created_at'] # urls.py from django.urls import path from .views import MyModelDatatableView urlpatterns = [ path('datatable/', MyModelDatatableView.as_view(), name='datatable'), ]
Debug
Known issues
breakingIn version 1.10.0, the import path changed from 'datatables_view' to 'datatableview.views'. Old imports will break.
fix
Update imports: from datatableview.views import DatatableView
affects: <1.10.0
deprecatedThe 'display_fields' attribute is deprecated in favor of 'columns'. 'display_fields' may be removed in future.
fix
Use 'columns' instead of 'display_fields' in your view.
affects: >=1.15.0
gotchaThe library expects the URL's GET parameters to match DataTables' built-in parameters exactly. If you use a custom column name, you must map it via 'column_defs'.
fix
Use 'column_defs' dict in view to map DataTables column indices to model fields.
affects: all
Upgrade
Version history
1.20.0latest on PyPI · released Apr 5, 2022
Audit
Dependencies
djangorequiredRequired runtime dependency, version >=2.2
Agent activity
8 hits · last 30 days
node
8
Resources
django-datatables-view — pip install django-datatables-view · libregistry