Dynamic DataTables#
This page explains Dynamic DataTables, a programming pattern that allows to manage large amount of data without coding. This tool can be used for any model defined in the project for adding, delete, update, search and filter the information via a paginated table view.
Django Datta Able - Django Starter that includes Dynamic DataTables Sample
Django Rocket HTMX - Django & HTMX sample of Dynamic DataTables Sample
Flask Able Django - Free Flask Starter that incorporates the Dynamic DataTables Sample
👉 New to App-Generator? Sign IN with GitHub or Generate Web Apps in no time (free service).
Features#
Minimal Configuration (single line in config for each model)
Handles any model defined across the project
Search, Pagination
Server-Side processing
Export (CSV)
How to use it#
Download a starter that supports the Dynamic Tables concept:
$ unzip django-datta-able.zip
$ cd django-datta-able
This documentation is provided for the Django Datta Able starter.
Update Configuration#
The dynamic data table module works with any model defined in the project.
DYNAMIC_DATATB = {
# SLUG -> Import_PATH
'product' : "apps.pages.models.Product",
}
The above code enables the dynamic module for the Product model, defined in apps.pages.models.py.
In order to execute successfully this set up, make sure the model exists and the database is migrated.
Access Dynamic Tables Page#
All models handled by the dynamic module are listed in the /dynamic-dt/ page. The dynamic view uses a dynamic URL, as specified in the configuration:
Links#
👉 New to App-Generator? Join our 10k+ Community using GitHub One-Click SignIN.
👉 Download products and start fast a new project
👉 Bootstrap your startUp, MVP or Legacy project with a custom development sprint