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.19.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file django-detect-1.0.19.tar.gz
.
File metadata
- Download URL: django-detect-1.0.19.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe9f4a80bd3cfe5f7fe71bc0f547089ec4235ef14458c97aec9849331a6f9e9 |
|
MD5 | e51d133ec926080b170ebfb3beba7293 |
|
BLAKE2b-256 | 7a8dfbb30f02b7a4ad16299a52810f0309b3b8a682c720c5d315779dee2960df |
File details
Details for the file django_detect-1.0.19-py2.py3-none-any.whl
.
File metadata
- Download URL: django_detect-1.0.19-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d91510368d3345c7bc58bcd65c988f9f87fdd366de755ca684023f5c0f241b |
|
MD5 | 384cd8171550ea26b08a2a9fb53c9d0f |
|
BLAKE2b-256 | 184b7d8aeeb1855636dbaf47550096ea4ac5b35db84868d0bfe55f30eb2dc441 |