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.

👉 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)

Dynamic DataTables - Manage information with ease via pagination, search, and filters without coding

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.

config/settings.py#
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:

Dynamic DataTables - Manage information with ease via pagination, search, and filters without coding