django-admin-tools-stats 0 python

Django-admin-tools-stats is a Django admin module that allow you to create easily charts on your dashboard based on specific models and criterias

3 years after MIT


:Description: Django-admin module to create charts and stats in your dashboard :Documentation:

.. image:: :target:

.. image:: :target: :alt: Latest Version

.. image:: :target: :alt: Downloads

.. image:: :target: :alt: Supported Python versions

.. image:: :target: :alt: License

Django-admin-tools-stats is a Django admin module that allow you to create easily charts on your dashboard based on specific models and criterias.

It will query your models and provide reporting and statistics graphs, simple to read and display on your Dashboard.

.. image::


Install, upgrade and uninstall django-admin-tools-stats with these commands::

$ pip install django-admin-tools-stats


django-admin-tools-stats is a django based application, the major requirements are :

- python-dateutil
- django-jsonfield
- django-qsstats-magic
- django-cache-utils
- django-admin-tools
- django-nvd3
- django-bower


  • Configure admin_tools

  • Configure django-bower

    • Add django-bower to INSTALLED_APPS in

      INSTALLED_APPS = ( ... 'djangobower' )

    • Add the following properties to you file::

      Specifie path to components root (you need to use absolute path)

      BOWER_COMPONENTS_ROOT = os.path.join(PROJECT_ROOT, 'components')

      BOWER_INSTALLED_APPS = ( 'jquery#2.0.3', 'jquery-ui#~1.10.3', 'd3#3.3.6', 'nvd3#1.1.12-beta', )

    • Add django-bower finder to your static file finders::

      STATICFILES_FINDERS = ( ... 'djangobower.finders.BowerFinder', )

    • Run the following commands. These will download nvd3.js and its dependencies using bower and throw them in to you static folder for access by your application::

      $ python bower_install $ python collectstatic

  • Add admin_tools_stats & django_nvd3 into INSTALLED_APPS in

    INSTALLED_APPS = ( ... 'admin_tools_stats', 'django_nvd3', )

  • Add following code to

    from admin_tools_stats.modules import DashboardCharts, get_active_graph

    append an app list module

    self.children.append(modules.AppList( _('Dashboard Stats Settings'), models=('admin_tools_stats.*', ), ))

    Copy following code into your custom dashboard

    append following code after recent actions module or

    a link list module for "quick links"

    graph_list = get_active_graph() for i in graph_list: kwargs = {} kwargs['require_chart_jscss'] = True kwargs['graph_key'] = i.graph_key

    if context['request'].POST.get('select_box_' + i.graph_key):
        kwargs['select_box_' + i.graph_key] = context['request'].POST['select_box_' + i.graph_key]
  • To create the tables needed by Django-admin-tools-stats, run the following command::

    $ python syncdb

  • You may also need to add some includes to your template admin base, see an example on the demo project:


  • Open admin panel, configure Dashboard Stats Criteria & Dashboard Stats respectively


If you've found a bug, add a feature or improve django-admin-tools-stats and think it is useful then please consider contributing. Patches, pull requests or just suggestions are always welcome!

Source code:

Bug tracker:


Documentation is available on 'Read the Docs':


Copyright (c) 2011-2014 Star2Billing S.L. [email protected]

django-admin-tools-stats is licensed under MIT, see MIT-LICENSE.txt.

Related Repositories



an awesome list of honeypot resources ...



Call Analytics Solution for Freeswitch, Asterisk, Kamailio and other VoIP Switch ...



An improved django-admin-tools dashboard for Django projects ...



A curated list of amazingly awesome redis and redis ecosystem resources. ...



This app provides django-admin-tools dashboard modules with user registration st ...

Top Contributors

areski shrenik PetrDlouhy abarax avaneesh23 andybak vdboor hbkfabio jonathan-roper gannetson DXist


-   v0.6.3 zip tar
-   v0.6.2 zip tar
-   v0.6.1 zip tar
-   v0.6.0 zip tar