Skip to main content

Django application that provides visitor and page view tracking and an analytics dashboard for your Django website.

Project description

Punkweb Insight

Punkweb Insight is a Django application that provides visitor and page view tracking and an analytics dashboard for your Django website.

Built with

Requirements

  • Python 3.9+
  • Django 4.0+

It may work with older versions of Python and Django, but it has not been tested.

Installation

pip install punkweb-insight

Add insight to your INSTALLED_APPS in your Django settings module:

INSTALLED_APPS = [
    ...
    "insight",
]

Add the following middleware to your MIDDLEWARE in your Django settings module, directly after SessionMiddleware:

MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "insight.middleware.InsightMiddleware", # Directly after SessionMiddleware
]

Add the following URL pattern to your urls.py:

from django.urls import path, include

urlpatterns = [
    ...
    path("insight/", include("insight.urls")), # or any other path you want
]

And finally, install the models:

python manage.py migrate

Configuration

These are the default settings for Punkweb Insight, which can be overridden in your Django settings module:

INSIGHT = {}

Testing

Report:

coverage run && coverage report

HTML:

coverage run && coverage html

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

punkweb_insight-0.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

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

punkweb_insight-0.1.0-py3-none-any.whl (94.0 kB view details)

Uploaded Python 3

File details

Details for the file punkweb_insight-0.1.0.tar.gz.

File metadata

  • Download URL: punkweb_insight-0.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.2

File hashes

Hashes for punkweb_insight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd6473422c78361f367a0ec44774a6522dd6d894dacf06052caf0a1140846c2f
MD5 94a1bce79e53ca34777db3d2cf73b998
BLAKE2b-256 ada4cf163c6e61100ca6b88ea5edee092f33534f6149d863048830ad994fcc5e

See more details on using hashes here.

File details

Details for the file punkweb_insight-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for punkweb_insight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a23fa9b7f1897f11e5ed2ad9a70c52995c28e757c4636df4b33af8f67ef818
MD5 a365fdc69f82f78f3ed2c26f038c0e88
BLAKE2b-256 af1dd8115e8f1404f00c5136edb23b58035eab9627a74e47a64bdfef5b7559a1

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