Dynamic DataTables
Contents
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 includesDynamic DataTables Sample
Django Rocket HTMX - Django & HTMX sample ofDynamic DataTables Sample
Flask Able Django - FreeFlask Starter that incorporates theDynamic DataTables Sample
👉 New toApp-Generator? Sign IN withGitHub orGenerate 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:
$unzipdjango-datta-able.zip$cddjango-datta-able
This documentation is provided for theDjango 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 theProduct model, defined inapps.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 toApp-Generator? Join our 10k+ Community using GitHubOne-Click SignIN.
👉 Downloadproducts and start fast a new project
👉 Bootstrap your startUp, MVP or Legacy project with acustom development sprint