Template tags


You can either:

  • load the template tag lib into each template manually:
{% load eztables %}
  • load the template tag lib by adding it to your views.py:
from django.template import add_to_builtins




A {% datatables_js %} tag is available to include the datatables javascript library. After loading, you can use the Datatables library as usual:

<table id="my-table">

{% datatables_js %}

bootstrap support

If you want to use the twitter bootstrap style (based on this blog post), 2 template tags are provided for:

  • {% datatables_bootstrap_js %} for the javascript part.
  • {% datatables_bootstrap_css %} for the css part.
    {% datatables_bootstrap_css %}

    {% datatables_js %}
    {% datatables_bootstrap_js %}

<table id="my-table">

        "bPaginate": true,
        "sPaginationType": "bootstrap",
        "bScrollCollapse": true

Project Versions

Table Of Contents

Previous topic

Welcome to Django ezTables’s documentation!

Next topic

Server-side processing

This Page