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.8.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.8.tar.gz
.
File metadata
- Download URL: django-detect-1.0.8.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e862a3bef98a9c899e07a465cb4e41c6ccbf1af43d27093ce03215dbf7228e9 |
|
MD5 | b7427b512dbc70c8e870ea9c92c65ef1 |
|
BLAKE2b-256 | fd20d0e89894be34311b2d45bdbecebe28c8814c77426ef1c003657d90fbfa69 |
File details
Details for the file django_detect-1.0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb198ef2f12a1c8b25cafb9beedbb17103acccc8c8730db2bd25ffa6d028b94 |
|
MD5 | f5a9d23483aa463570a36b95cba008ff |
|
BLAKE2b-256 | 71377888dee10731862b1fec968138de8b64173c0c858f4f1465882faef70448 |