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.13.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.13.tar.gz
.
File metadata
- Download URL: django-detect-1.0.13.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 | a60b2efdfb03db9147f09772ba692de9e3c40487cedd9fe505696271ef88a2de |
|
MD5 | 43d6f4ef130fa124a7050592ca2deb08 |
|
BLAKE2b-256 | 76519694b7a830642eba9f322b16a25903c099aa2d9c1b01cf702390c90e2e85 |
File details
Details for the file django_detect-1.0.13-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.13-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 | c09e73b0946685e064c0fbc7a4fe745f031015c695fac831c2db703566979cec |
|
MD5 | 82958e3aea42e146a77d0d13e7560c8f |
|
BLAKE2b-256 | 1d36bc5ef030a7b525a1550a2dd5dd6156df7622341bc9c0777fa5d56f1b0261 |