Skip to main content

django-admin-tools-stats - Django-admin module to create charts and stats in your dashboard

Project description

Django-admin-tools-stats

Description:

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

Documentation:

http://django-admin-tools-stats.readthedocs.org/en/latest/

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

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

Installation

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

$ pip install django-admin-tools-stats

Dependencies

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

  • python-dateutil>=1.5,<2.0

  • django-jsonfield==0.8

  • django-qsstats-magic>=0.6.1

  • python-memcached>=1.47

  • django-cache-utils

  • django-admin-tools>=0.5.0

  • switch2bill-common>=2.6.0

  • django-nvd3>=0.4.1

Configure

  • Configure admin_tools

  • Add admin_tools_stats & chart_tools into INSTALLED_APPS in settings.py:

    INSTALLED_APPS = (
        ...
        'admin_tools_stats',
        'chart_tools',
        ...)
  • Add following code to dashboard.py:

    from admin_tools_stats.modules import DashboardCharts, get_active_graph
    
    # append an app list module for "Country_prefix"
    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'] = False
        kwargs['graph_key'] = i.graph_key
    
        if request.POST.get('select_box_' + i.graph_key):
            kwargs['select_box_' + i.graph_key] = request.POST['select_box_' + i.graph_key]
    
        self.children.append(DashboardCharts(**kwargs))
  • Run this command:

    $ python manage.py syncdb
  • Open admin panel, configure Dashboard Stats Criteria & Dashboard Stats respectively

Screenshot

https://github.com/Star2Billing/django-admin-tools-stats/raw/master/docs/source/_static/admin_dashboard.png

Contributing

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: http://github.com/Star2Billing/django-admin-tools-stats

Bug tracker: https://github.com/Star2Billing/django-admin-tools-stats/issues

Documentation

Documentation is available on ‘Read the Docs’: http://readthedocs.org/docs/django-admin-tools-stats/

License

Copyright (c) 2011-2013 Star2Billing S.L. <info@star2billing.com>

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-admin-tools-stats-0.5.0.tar.gz (482.8 kB view details)

Uploaded Source

File details

Details for the file django-admin-tools-stats-0.5.0.tar.gz.

File metadata

File hashes

Hashes for django-admin-tools-stats-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2ec71ad65f7bfb656f485afecd60c5b445fe4a4f22249bf3cdf12e0f57b597d1
MD5 f29e13f3de59ad088b7ea0079b666289
BLAKE2b-256 56ad4dfa638256ee551d451931fc7082562335ffd144aecebed6bcbe09cb879d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page