Skip to main content

Django UserAgent Detect

Project description

Installation

pip install django-detect

Usage

# ####### Device、OS #######
# Windows
request.Windows
# Linux
request.Linux
# iMac/iPhone/iPad/iPod
request.iMac
request.iPhone
request.iPad
request.iPod
# PC
request.PC = request.Windows or request.Linux or request.iMac
# iOS
request.iOS = request.iPhone or request.iPad or request.iMac or request.iPod
# Android and Version
request.Android
request.Android.version

# ####### APP #######
# Weixin/Wechat and Version
request.weixin
request.weixin.version
request.wechat
request.wechat.version

Settings.py

# Use `MIDDLEWARE_CLASSES` prior to Django 1.10
MIDDLEWARE = (
    ...
    'detect.middleware.UserAgentDetectionMiddleware',
    ...
)

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-detect-1.0.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

django_detect-1.0.5-py2.7.egg (3.5 kB view details)

Uploaded Source

File details

Details for the file django-detect-1.0.5.tar.gz.

File metadata

File hashes

Hashes for django-detect-1.0.5.tar.gz
Algorithm Hash digest
SHA256 5270660217d9e9409a72bb9884e9ac7caff283b470e2907d25e9570c61330fb5
MD5 9e3a02ff624ccb90a716991c5d88a0cf
BLAKE2b-256 509867c3b13388665f282b3f6f246f24af89f70acfa4e394900f16cc395c2026

See more details on using hashes here.

File details

Details for the file django_detect-1.0.5-py2.7.egg.

File metadata

File hashes

Hashes for django_detect-1.0.5-py2.7.egg
Algorithm Hash digest
SHA256 a1be805e62f9e5cafe7009fae8cc2dd04233eef95972573e28c300f65baf78a3
MD5 c95f478216fe5ca91c04daccdb1bfe55
BLAKE2b-256 bc558f474e5467b6ad72a80c6c69ee45213cc5c6a80742960b399c6c25202852

See more details on using hashes here.

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