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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file punkweb_insight-0.1.1.tar.gz.
File metadata
- Download URL: punkweb_insight-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d11c6e34427994aaa2082362fc930a332c254f867f66cc8a1d504eec67ca18e
|
|
| MD5 |
f90faab7d405476ced349b76eb665139
|
|
| BLAKE2b-256 |
5124a89702e000ad5447459c9207b616854aaa07580bf83aedf3bd3a31e42597
|
File details
Details for the file punkweb_insight-0.1.1-py3-none-any.whl.
File metadata
- Download URL: punkweb_insight-0.1.1-py3-none-any.whl
- Upload date:
- Size: 94.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7331136595d07fa91b426fdea37af1fe31f44061d02a940f3eb3e395f9e035f4
|
|
| MD5 |
d4d7624497085b5c0501c90885abf62e
|
|
| BLAKE2b-256 |
422a1d541b6f99afe7928a6e7de66604f959017f4e357a0a99ba4ef8ffa7c94b
|