Nov 8, 2011

Data apps for Django

django-tables2

Simplifies the task of turning sets of data into HTML tables. It has native support for pagination and sorting

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

django-autoreports (csv export)

Autoreports is a Django application that lets you create reports in very Django Admin listing
Redefine 'admin/change_list.html' templates as follows
{% load adminmedia admin_list i18n autoreports_tags %} {# add auto_reports_tags #}

#...#

{% block object-tools %}
  {% if has_add_permission %}
    <ul class="object-tools">
      <li>
        <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
          {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
        </a>
      </li>
      {% autoreports_admin %} {# add this stuff #}
    </ul>
  {% endif %}
{% endblock %}

#...#
For basic usage you have to api, and you can export to CSV each models.
/autoreports/app_label/module_name/
/autoreports/app_label/module_name/?filter1=value1

django-easyfilters

Easy creation of link-based filtering for a list of Django model objects. Demo

django-datatables - datatables.net

No comments: