Skip to content
django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Made various improvements in docs. Oct 26, 2018
request Release 1.5.5. Feb 17, 2019
tests Used six package instead of django.utils.six. Feb 17, 2019
.coveragerc Make 100% coverage for request.traffic Mar 31, 2016
.gitignore
.travis.yml
CHANGELOG.md Dropped Django 1.9 support. Jan 11, 2019
LICENSE Release 1.5.5. Feb 17, 2019
MANIFEST.in Fixed #180 -- Fixed series of dates in a Traffic Graph. Nov 3, 2018
README.md Used six package instead of django.utils.six. Feb 17, 2019
runtests.py
setup.cfg
setup.py
tox.ini Added tests with Django 2.2a1. Jan 18, 2019

README.md

django-request

Build Status Coverage Status PyPI Version

django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.

Traffic graph

As well as a site statistics module, with the active_users template tag and manager method you can also use django-request to show who is online in a certain time.

Request.objects.active_users(minutes=15)

To find the request overview page, please click on Requests inside the admin, then “Overview” on the top right, next to “add request”.

Requirements

  • Python: 2.7, 3.4, 3.6
  • Django: 1.10, 1.11, 2.0, 2.1
  • python-dateutil
  • six

django-request 1.5.1 is the last version that supports Django 1.4, 1.5, 1.6. django-request 1.5.4 is the last version that supports Django 1.7, 1.8, 1.9.

Installation

  • Put 'request' in your INSTALLED_APPS setting.
  • Run the command manage.py migrate.
  • Add request.middleware.RequestMiddleware to MIDDLEWARE. If you use django.contrib.auth.middleware.AuthenticationMiddleware, place the RequestMiddleware after it. If you use django.contrib.flatpages.middleware.FlatpageFallbackMiddleware place request.middleware.RequestMiddleware before it else flatpages will be marked as error pages in the admin panel.
  • Make sure that the domain name in django.contrib.sites admin is correct. This is used to calculate unique visitors and top referrers.

Detailed documentation

For a detailed documentation of django-request, or how to install django-request please see: django-request or the docs/ directory.

You can’t perform that action at this time.