{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "django-sitetables\n=================\nhttps://github.com/idlesign/django-sitetables\n\n|release| |lic| |ci| |coverage| |health|\n\n.. |release| image:: https://img.shields.io/pypi/v/django-sitetables.svg\n :target: https://pypi.python.org/pypi/django-sitetables\n\n.. |lic| image:: https://img.shields.io/pypi/l/django-sitetables.svg\n :target: https://pypi.python.org/pypi/django-sitetables\n\n.. |ci| image:: https://img.shields.io/travis/idlesign/django-sitetables/master.svg\n :target: https://travis-ci.org/idlesign/django-sitetables\n\n.. |coverage| image:: https://img.shields.io/coveralls/idlesign/django-sitetables/master.svg\n :target: https://coveralls.io/r/idlesign/django-sitetables\n\n.. |health| image:: https://landscape.io/github/idlesign/django-sitetables/master/landscape.svg?style=flat\n :target: https://landscape.io/github/idlesign/django-sitetables/master\n\n\n\n**Work in progress. Stay tuned.**\n\n\nDescription\n-----------\n\n*Reusable application for Django featuring DataTables integration*\n\n**Offers:**\n\n* Various data sources support: models, query sets, list of dicts.\n* ``DataTables`` plugins support: styling, internationalization, etc.\n* Template tags for easy js and css inclusion.\n* Template tags for DOM-based tables.\n\n\nHow to use\n----------\n\nFirst place table definition into ``views.py``:\n\n.. code-block:: python\n\n from django.shortcuts import render\n from sitetables.toolbox import Table\n\n from .models import Entries\n\n\n def entries(request):\n # We create table from entries queryset,\n table_entries = Table(Entries.objects.filter(hidden=False))\n return render(request, 'entries.html', {'table_entries': table_entries})\n\n\nNext create page template ``entries.html``:\n\n.. code-block:: html\n\n {% load sitetables %}\n\n \n {% sitetables_css table_entries %}\n\n \n