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

MIDDLEWARE_CLASSES = (
    ...
    '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.4.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

django_detect-1.0.4-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-detect-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5181907a407a5561e943f878dde945f9e01eee5127720a894b4e926b85dc8321
MD5 593bd599dfa2fe9a00a9f9078d274ca2
BLAKE2b-256 aa74e2befee61df3dffa5b8cb7795f6b0e8938b442d005ec416c777e237a9441

See more details on using hashes here.

File details

Details for the file django_detect-1.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_detect-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5dad8d2e01581cf168018130421caa29d267d8d91227eceb5f281b93b9b0c16b
MD5 5ae9ff4b39992d4cb02fb080663f1b0f
BLAKE2b-256 c226486e329628109003115b94d49c3ac4eba5ec6c291aa132e309b39cc42680

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