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

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:

$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.

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

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

Links#