Overview

This is a simple hit counter for Django.

To use you need to:

  1. Add 'hitcounter.counter' to your installed apps;

  2. Wrap your view functions with the decorators found in the hitcounter.counter.watchers (currently simple_hit_watcher and unique_hit_watcher);

  3. Collect hits by accessing the hitcounter.counter.watchers.runner object's get_last_hit_count(interval) method, where interval is the interval of ineterest in seconds. This method returns a tuple of (hit_count, starttime);