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.20.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for django_detect-1.0.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d6cf1d6a22d89d88d0079a1fd63f20d951b06ef82a6f3cd573e714d706a589 |
|
MD5 | dc8b98714828d419e0635d155ccf8b97 |
|
BLAKE2b-256 | d5639d1812fb87d58f829baf62cd0b12566a29ea9e0fd68d1053b22ea40afe62 |