django-admin-user-stats / README.rst

django-admin-tools-user-stats

This app provides django-admin-tools dashboard modules with user registration stats/charts.

The license is MIT.

Installation

Make sure django-admin-tools >= 0.4.0 is installed and then

pip install "django-qsstats-magic >= 0.6.1"
pip install "python-dateutil==1.5"
pip install "django-chart-tools >= 0.2.1"
pip install django-admin-user-stats

Then add 'admin_user_stats' and 'chart_tools' to INSTALLED_APPS.

Quickstart

Import RegistrationCharts dashboard module:

from admin_user_stats.modules import RegistrationCharts

then and add it to dashboard's children:

self.children += [RegistrationCharts()]

go to admin and enjoy the result.

Usage

RegistrationChart

Dashboard module with user registration charts (new users per day, week or month).

To enable, import it:

from admin_user_stats.modules import RegistrationChart

and add to dashboard's children (or to modules.Group):

self.children += [RegistrationChart('New Users', interval='days', days=30)]

RegistrationCharts

Group subclass with 3 default children modules (new users per day, per week and per month).

get_registration_charts()

A function returning 3 default RegistrationChart instances:

from admin_user_stats.modules import get_registration_charts
self.children += get_registration_charts()

Contributing

Development of django-admin-user-stats happens at Bitbucket and Github:

If you don’t like Bitbucket, Github, Mercurial and Git you’re welcome to send regular patches.

Bug tracker: https://github.com/kmike/django-admin-user-stats/issues

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.