Middleware for Django.
Project description
django-ismobile
"is_mobile" middleware for Django
Requirements
Requires Django 2.0 or later.
Installing
Install with pip
or your favorite PyPi package manager.
pip install django-ismobile
Using
Include MobileControlMiddleware into your MIDDLEWARE:
MIDDLEWARE = (
...
'ismobile.middleware.MobileControlMiddleware',
...
)
Config
In order to change request attribute name, set IS_MOBILE_ATTR_NAME in django settings file.
IS_MOBILE_ATTR_NAME="custom_name"
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-ismobile-1.0.2.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file django-ismobile-1.0.2.tar.gz
.
File metadata
- Download URL: django-ismobile-1.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.6.11 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882cd7944260b53063e538e3dea104908dbf6ae2f7fc4339b109b4db28d7265c |
|
MD5 | 547952afe7fe9ef3e88fe6a2c5619069 |
|
BLAKE2b-256 | 62bd7f3625e22c705f34c0dd477770d28a23baa5d810cec262fe30ff3322243a |
File details
Details for the file django_ismobile-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_ismobile-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.6.11 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7840eb48fe00a313431080ff8fad0cd8b8fdf72a4b72d6096f8ac7fc9c5402c |
|
MD5 | 9a5f5964fee4885487524ee1119a091d |
|
BLAKE2b-256 | dd9dc7bd1c6d7b239efeed5ca863d020785d4e9f79b1e489d60b71130f98dd50 |