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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-detect-1.0.20.tar.gz.
File metadata
- Download URL: django-detect-1.0.20.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 |
af62f8b201090b41da0c8f4e48d4c7c34faa746fa4985e346930d3c4384009b7
|
|
| MD5 |
a13f57edb89caeb27db483efdb125c4a
|
|
| BLAKE2b-256 |
014ca9d187b9491a438497c5ded6e12e38683ecda938913781dfd8f361d1e497
|
File details
Details for the file django_detect-1.0.20-py2.py3-none-any.whl.
File metadata
- Download URL: django_detect-1.0.20-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 |
f6d6cf1d6a22d89d88d0079a1fd63f20d951b06ef82a6f3cd573e714d706a589
|
|
| MD5 |
dc8b98714828d419e0635d155ccf8b97
|
|
| BLAKE2b-256 |
d5639d1812fb87d58f829baf62cd0b12566a29ea9e0fd68d1053b22ea40afe62
|