django-ackee-middleware-0.1.1
توضیحات
Django middleware reporting requests to Ackee
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-ackee-middleware-0.1.1 |
| نام | django-ackee-middleware |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Wojtek Siudzinski |
| ایمیل نویسنده | admin@suda.pl |
| آدرس صفحه اصلی | https://github.com/suda/django-ackee-middleware |
| آدرس اینترنتی | https://pypi.org/project/django-ackee-middleware/ |
| مجوز | - |
# django-ackee-middleware
[](https://github.com/suda/django-ackee-middleware/actions)
[](https://codecov.io/gh/suda/django-ackee-middleware)
[](LICENSE)
[](https://pypi.org/project/django-ackee-middleware/)
> [Django](https://www.djangoproject.com/) middleware reporting requests to [Ackee](https://ackee.electerious.com/), 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](https://docs.ackee.electerious.com/#/docs/Get%20started#with-heroku).
## Configuration
Add the middleware as the first one in your Django `settings.py`:
```python
MIDDLEWARE = [
"ackee.middleware.TrackerMiddleware",
"django.middleware.security.SecurityMiddleware",
...
]
```
Then add the following properties:
```python
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`](https://pipenv.pypa.io/en/latest/) 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 package
* `pipenv run upload` - uploads the package to PyPI
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl django-ackee-middleware-0.1.1:
pip install django-ackee-middleware-0.1.1.whl
نصب پکیج tar.gz django-ackee-middleware-0.1.1:
pip install django-ackee-middleware-0.1.1.tar.gz