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.6.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.6.tar.gz
.
File metadata
- Download URL: django-detect-1.0.6.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd515d44bbdc94bff4855c48b89782e40f1354548b90a10bd21833e3f9873a7 |
|
MD5 | 93a452b755a8b44fd0c2a935f9c0c060 |
|
BLAKE2b-256 | 04f37d0afd728b58f24b018e6de6b5846b0dc3533894790fb4947a2c9ed3d43d |
File details
Details for the file django_detect-1.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 815349c249e240bd5795ee131e8ad3e29eee4676fa5e3cc525dd5705ae0e81f4 |
|
MD5 | 1de3ec4cfb0f9ad7f960a40ad3089e25 |
|
BLAKE2b-256 | 434195f43d78d31d327fd3c59220edaad8d05588b5e5c1e3e8aac908d2244bbf |