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.11.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.11.tar.gz
.
File metadata
- Download URL: django-detect-1.0.11.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e70fcddf57ff9abca6a88ffdf5bcdb520584221fc85aa4789ef76aea977a5d |
|
MD5 | a5f64b133e0d62a003bb5a7b9aa64940 |
|
BLAKE2b-256 | 31ba571131a7e639bd89479f9650e774012e8a81dfd923f1dfd0e2b95bdcf63a |
File details
Details for the file django_detect-1.0.11-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.11-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d4b82940fa429115731e008de6e99010df8495a847d4d56be7ab4c5fed1b5f |
|
MD5 | d89312769d9205b7a602c60affbc6ed0 |
|
BLAKE2b-256 | be4971750278de89e06b06b84cbe950c9c6420dc10bab92baf3b9020bdcce383 |