Skip to main content

UserAgent Detect

Project description

Installation

pip install django-detect

Usage

# Weixin/Wechat
request.weixin
request.weixin.version
request.wechat
request.wechat.version
# iPhone/iPad/iPod
request.iPhone
request.iPad
request.iPod
# iOS
request.iOS = request.iPhone or request.iPad or request.iPod
# Android
request.Android
request.Android.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.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

django_detect-1.0.3-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-detect-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5bdd5822eefdcfd6d5c0be98c1ec192ba3d240ebe48721d4a965c942d3317374
MD5 4d6fdb6bd6b47a32bcba434d19371f89
BLAKE2b-256 21ea97380d634e1c141546136cc5bbeb8d53025795bdc1208614477fe3014781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_detect-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 acc91ee06e83596d40f5e3bf1e51358f6f945f8a6607b217bba17390bec43f47
MD5 309a14c94763c10719e607f0914d80e1
BLAKE2b-256 a1d7ab65d9a59a78b664b897210ec9c7a8716fde700820018f4b5e4201b82089

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