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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file django-detect-1.0.5.tar.gz
.
File metadata
- Download URL: django-detect-1.0.5.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5270660217d9e9409a72bb9884e9ac7caff283b470e2907d25e9570c61330fb5 |
|
MD5 | 9e3a02ff624ccb90a716991c5d88a0cf |
|
BLAKE2b-256 | 509867c3b13388665f282b3f6f246f24af89f70acfa4e394900f16cc395c2026 |
File details
Details for the file django_detect-1.0.5-py2.7.egg
.
File metadata
- Download URL: django_detect-1.0.5-py2.7.egg
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1be805e62f9e5cafe7009fae8cc2dd04233eef95972573e28c300f65baf78a3 |
|
MD5 | c95f478216fe5ca91c04daccdb1bfe55 |
|
BLAKE2b-256 | bc558f474e5467b6ad72a80c6c69ee45213cc5c6a80742960b399c6c25202852 |