Skip to main content

Counts the number of the requests coming from various os.

Project description

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)

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

django_requesting_os_analyzer-0.1.3.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page