Skip to main 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.

Project description

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: 3.6, 3.7, 3.8, 3.9, 3.10

  • Django: 2.2, 3.2, 4.0

  • python-dateutil

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.

django-request 1.5.5 is the last version that supports Django 1.10.

django-request 1.5.6 is the last version that supports Django 1.11, 2.0, 2.1, 3.0, 3.1, and Python 2.7 and 3.4.

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.

  • Add REQUEST_BASE_URL to your settings with the base URL of your site (e.g. https://www.my.site/). This is used to calculate unique visitors and top referrers. REQUEST_BASE_URL defaults to 'http://%s' % Site.objects.get_current().domain.

Detailed documentation

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

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-request-1.6.1.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_request-1.6.1-py3-none-any.whl (101.8 kB view details)

Uploaded Python 3

File details

Details for the file django-request-1.6.1.tar.gz.

File metadata

  • Download URL: django-request-1.6.1.tar.gz
  • Upload date:
  • Size: 84.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for django-request-1.6.1.tar.gz
Algorithm Hash digest
SHA256 2464a77cdd791fe76162eea2f844c4cba7cb6fcdda9a5d3d86c9d4b6d9162330
MD5 bb2929bbd45de379d3679dbae9f20f46
BLAKE2b-256 2d2b79cdb82a5a917a80e6d7756efde6a946f56c082d4662a7eeb961934c86e6

See more details on using hashes here.

File details

Details for the file django_request-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: django_request-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 101.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for django_request-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be85d78631c2990f07f9170588b95036db446f0a07a0865487133435c797d2f9
MD5 1e06c511ca9d549a77dfcce9ec699bd9
BLAKE2b-256 f652577bd1c8147b86a5edcfdaed621331966b74cada065b505b9c394502da9b

See more details on using hashes here.

Supported by

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