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.14.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.14.tar.gz
.
File metadata
- Download URL: django-detect-1.0.14.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2311d066b911e0e1afc5a02ab01b5ba04d3eb2ba88e6aa2939bfdc8a6c25469d |
|
MD5 | 0618b288833f77b6fba38cb417f62fdc |
|
BLAKE2b-256 | 85f5c64e4e84810b6d5bf2b2c5891335b4ac15d3eb2a67c9b7ec50c35646e0de |
File details
Details for the file django_detect-1.0.14-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.14-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a534589294cef26b6ebdc47fa7fee171cc26e441267ef0ffc9c7a81df8809b |
|
MD5 | 0f1f96af9ec4c592f609664e71914627 |
|
BLAKE2b-256 | e70d906c4ad930587fcd59a20c0387a33ca02fb74ed678549fc658ae1afe1ee7 |