django-tables2
Table/data-grid framework for Django
Decision gist · record as of 2026-08-14
Yes. django-tables2 is actively maintained, has no known vulnerabilities, carries a permissive BSD license, and solves a common Django problem with low install friction. It is well-suited for any Django project that needs to display tabular data with pagination and sorting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django and Python 3.10 or later; the package must be added to INSTALLED_APPS for template tags to work.
- Low install friction with a single runtime dependency (django).
- Active maintenance with a recent release (123 days ago) and ongoing repository activity.
License · maintenance · safety
permissive license (permissive) — BSD license (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you retain the license notice.
last release 2026-04-13 (123 days) · last repo commit 2026-07-20 · 2,012 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,017,635 downloads/mo, #4,498 on PyPI
Alternatives
Verify before relying
# Install
pip install django-tables2
# In settings.py
INSTALLED_APPS = (..., "django_tables2")
# Define a table
import django_tables2 as tables
class MyTable(tables.Table):
class Meta:
model = MyModel
# In a view
class MyTableView(tables.SingleTableView):
table_class = MyTable
queryset = MyModel.objects.all()
# In template
{% load django_tables2 %}
{% render_table table %}- Whether the package supports Django 5.2 and 6.0 in practice or only declares compatibility
- Performance characteristics with large querysets or complex custom columns
What it is and what it does
django-tables2 is a Django app that converts querysets and other iterables into rendered HTML tables with minimal boilerplate. It works by defining a Table subclass that declares columns and metadata, then passing that table class to a view mixin or template tag. The package handles pagination, column sorting, and template rendering without requiring JavaScript, and supports automatic table generation from Django models.
The package is designed for developers who need to display tabular data in Django templates. It reduces repetitive HTML generation and provides a declarative, model-like syntax familiar to Django users. It works with any iterable data source but has special integration with Django querysets, making it particularly useful for displaying database results with sorting and pagination controls.
Use it for
- Display a Django model's records in a paginated, sortable HTML table in an admin-like interface
- Generate data grids from filtered querysets with automatic column rendering and pagination
- Build custom table layouts by subclassing Table and defining column types and behaviors
- Render querysets in templates without writing raw HTML loops or manual pagination logic
- Create sortable, paginated reports from any iterable data source in a Django view
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
django-tables2 is actively maintained, has no known vulnerabilities, carries a permissive BSD license, and solves a common Django problem with low install friction. It is well-suited for any Django project that needs to display tabular data with pagination and sorting.
Install
django-tables2 on PyPI
Before you install
Low install friction with a single runtime dependency (django). Active maintenance with a recent release (123 days ago) and ongoing repository activity.
Requires Django and Python 3.10 or later; the package must be added to INSTALLED_APPS for template tags to work.
License in practice
BSD license (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you retain the license notice.
Quickstart
# Install
pip install django-tables2
# In settings.py
INSTALLED_APPS = (..., "django_tables2")
# Define a table
import django_tables2 as tables
class MyTable(tables.Table):
class Meta:
model = MyModel
# In a view
class MyTableView(tables.SingleTableView):
table_class = MyTable
queryset = MyModel.objects.all()
# In template
{% load django_tables2 %}
{% render_table table %}
Verify before relying
- Whether the package supports Django 5.2 and 6.0 in practice or only declares compatibility
- Performance characteristics with large querysets or complex custom columns
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjango |
| Maintenance | Actively maintained 123 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,017,635 / month, #4,498 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries |
Evidence: django_tables2-3.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django table generation”
- django-tables2django-tables2 generates HTML tables from Django querysets and other…
- dj-datatables-viewProvides a Django base view for server-side DataTables processing,…
- django-cteAdds Common Table Expressions (CTE) support to Django's ORM, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also dj-datatables-view · django-datatables-view · django-cursor-pagination · django-select2 · django-queryset-csv · django-chunkator · django-query-builder · django-ordered-model · djangorestframework-datatables