All Projects → jieter → Django Tables2

jieter / Django Tables2

Licence: other
django-tables2 - An app for creating HTML tables

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Tables2

Lookup
A repository of journalist's lookup tables.
Stars: ✭ 95 (-93.01%)
Mutual labels:  tables
Django Apps Checklist
Useful checklist for build great Django apps. Feel free to contribute!
Stars: ✭ 98 (-92.79%)
Mutual labels:  django
Osm Export Tool
Web service to download customised OSM data in various file formats
Stars: ✭ 99 (-92.72%)
Mutual labels:  django
Playlistor
🎶Apple Music ↔️ Spotify playlist convertor.
Stars: ✭ 95 (-93.01%)
Mutual labels:  django
Nessus map
Parse .nessus file(s) and shows output in interactive UI
Stars: ✭ 97 (-92.87%)
Mutual labels:  django
Wjcat Release
问卷喵——vue和django开发的问卷调查网站。
Stars: ✭ 99 (-92.72%)
Mutual labels:  django
Tweetme
Build a Twitter-like web app step-by-step with Django, jQuery, and Bootstrap!
Stars: ✭ 95 (-93.01%)
Mutual labels:  django
Awx
AWX Project
Stars: ✭ 10,469 (+669.78%)
Mutual labels:  django
Pootle
Online translation tool
Stars: ✭ 1,346 (-1.03%)
Mutual labels:  django
Drf Cheat Sheet
Cheat sheet / quick reference guide for Django REST Framework.
Stars: ✭ 99 (-92.72%)
Mutual labels:  django
Wagtail Personalisation
Rule-based personalisation for Wagtail CMS
Stars: ✭ 96 (-92.94%)
Mutual labels:  django
Django Eventtools
A lightweight library designed to handle repeating and one-off event occurrences for display on a website.
Stars: ✭ 96 (-92.94%)
Mutual labels:  django
Form
Form is an iOS Swift library for building and styling UIs
Stars: ✭ 99 (-92.72%)
Mutual labels:  tables
Django Publications
A Django app for managing scientific publications.
Stars: ✭ 95 (-93.01%)
Mutual labels:  django
Django Rq
A simple app that provides django integration for RQ (Redis Queue)
Stars: ✭ 1,361 (+0.07%)
Mutual labels:  django
Iotdashboard
Fast Django server for IOT Devices
Stars: ✭ 95 (-93.01%)
Mutual labels:  django
Django Th
🐍 Trigger Happy - The bus 🚌 for your internet services
Stars: ✭ 1,356 (-0.29%)
Mutual labels:  django
Circleci Demo Python Django
Example Django application running on CircleCI
Stars: ✭ 100 (-92.65%)
Mutual labels:  django
React Sortable Hoc
A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
Stars: ✭ 9,747 (+616.69%)
Mutual labels:  sorting
Django Auth0 Vue
A Django REST Framework + Vue.js CRUD Demo Secured Using Auth0
Stars: ✭ 99 (-92.72%)
Mutual labels:  django

django-tables2 - An app for creating HTML tables

Latest PyPI version Any color you like

django-tables2 simplifies the task of turning sets of data into HTML tables. It has native support for pagination and sorting. It does for HTML tables what django.forms does for HTML forms. e.g.

Features:

  • Any iterable can be a data-source, but special support for Django QuerySets is included.
  • The builtin UI does not rely on JavaScript.
  • Support for automatic table generation based on a Django model.
  • Supports custom column functionality via subclassing.
  • Pagination.
  • Column based table sorting.
  • Template tag to enable trivial rendering to HTML.
  • Generic view mixin.

An example table rendered using django-tables2

An example table rendered using django-tables2 and bootstrap theme

An example table rendered using django-tables2 and semantic-ui theme

Example

Start by adding django_tables2 to your INSTALLED_APPS setting like this:

INSTALLED_APPS = (
    ...,
    "django_tables2",
)

Creating a table for a model Simple is as simple as:

import django_tables2 as tables

class SimpleTable(tables.Table):
    class Meta:
        model = Simple

This would then be used in a view:

class TableView(tables.SingleTableView):
    table_class = SimpleTable
    queryset = Simple.objects.all()
    template_name = "simple_list.html"

And finally in the template:

{% load django_tables2 %}
{% render_table table %}

This example shows one of the simplest cases, but django-tables2 can do a lot more! Check out the documentation for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].