django-requesting-os-analyzer-0.1.4
توضیحات
Counts the number of the requests coming from various os.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-requesting-os-analyzer-0.1.4 |
| نام | django-requesting-os-analyzer |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | hassan-shahzad |
| ایمیل نویسنده | hassanshahzadthegeek@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/django-requesting-os-analyzer/ |
| مجوز | MIT |
to install run the command
```
pip install django-requesting-os-analyzer
```
add to your installed apps
```
INSTALLED_APPS = [
...,
'django_requesting_os_analyzer.apps.DjangoRequestingOsAnalyzerConfig',
]
```
add middleware
```
MIDDLEWARE = [
...,
'django_requesting_os_analyzer.middleware.CounterMiddleware',
]
```
and then to allow the graph to show up you have to tweak your templates settings,
make sure 'APP_DIRS' is set to True.
```
TEMPLATES = [
{
...,
'DIRS': ['templates'],
'APP_DIRS': True,
},
]
```
you can also change the color of the graph's bar and their border by defing following
```
REQUEST_ANALYZER_BG_COLOR = (255,255,255,0.2)
REQUEST_ANALYZER_CHART_COLOR = (255,0,0,0.2)
```
نیازمندی
| مقدار | نام |
|---|---|
| >3.2 | Django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-requesting-os-analyzer-0.1.4:
pip install django-requesting-os-analyzer-0.1.4.whl
نصب پکیج tar.gz django-requesting-os-analyzer-0.1.4:
pip install django-requesting-os-analyzer-0.1.4.tar.gz