Django middleware reporting requests to Ackee
Project description
django-ackee-middleware
Django middleware reporting requests to Ackee, self-hosted analytics tool for those who care about privacy. Alternative to using the client-side JS tracker.
Installation
$ pip install django-ackee-middleware
If you don't have the Ackee instance yet, you can quickly deploy it on Heroku.
Configuration
Add the middleware as the first one in your Django settings.py
:
MIDDLEWARE = [
"ackee.middleware.TrackerMiddleware",
"django.middleware.security.SecurityMiddleware",
...
]
Then add the following properties:
ACKEE_SERVER = "https://myackeeserver.com"
ACKEE_DOMAIN_ID = "YOUR DOMAIN ID"
ACKEE_IGNORED_PATHS = [
"^/admin/.*"
]
Remember to change the server and domain ID to your values.
Development
This project is using pipenv
to manage the development dependencies. To install them run:
$ pipenv install
Publishing
There are two pipenv
scripts that make building and publishing the package easier:
pipenv run build
- builds the distribution packagepipenv run upload
- uploads the package to PyPI
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django-ackee-middleware-0.1.1.tar.gz
.
File metadata
- Download URL: django-ackee-middleware-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b71fdc6538f47e4d745bde5ee4709f6fe02c4e4ddd66726d1d335ff38f86e80 |
|
MD5 | db34f2300d53aa3f6e861a80847edbd0 |
|
BLAKE2b-256 | ce205d55d657185425aa05b61f9704c9fa5e7e468b49603cc8bfd0b025b025a2 |
File details
Details for the file django_ackee_middleware-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_ackee_middleware-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb046ddf5c838be75f0b020ecf49eca04a4ab75a79060515752b29e0a860a99f |
|
MD5 | d1ad3d642f26c7d73696e222bad866ca |
|
BLAKE2b-256 | 6fd8d1c427a1698f8a3020b099ef0f6dfa4743cd7040de810703f9fbe2302ba4 |