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, 3.11

  • Django: 2.2, 3.2, 4.0, 4.1, 4.2

  • 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.3.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

django_request-1.6.3-py3-none-any.whl (103.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-request-1.6.3.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for django-request-1.6.3.tar.gz
Algorithm Hash digest
SHA256 9b3093f92113dcd41076dafc3ba01165f7a141a2fbea292a79ce644412b4adea
MD5 b47917ee1bc36e8c3093e0d5bc283e93
BLAKE2b-256 7166bd2170e7aab449f9565764f094f29a462c5313c08ee2ba5ad44e82db7736

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_request-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5b27cb2f5bea676b4f84f6991363de57d1897758588ea16116f90ef4ea4ab76
MD5 c52c643db012d40c037214683ba00602
BLAKE2b-256 0000e2e288a5c0d2c743631351d00c20cacd2c7a4aa60f5c7df566ece0e7fb1f

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