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.17.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for django_detect-1.0.17-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3db5b0bda56f992503791fa1d9d7b7d39970c44602a3db8f0e28478ccb745b4 |
|
MD5 | cbbde7e4a227443bafeee080f528dee9 |
|
BLAKE2b-256 | f04125b0f3653bd309848e19a25df599f6f69c12a5015f2bc1062e8665b56925 |