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 hashes)
Built Distribution
Close
Hashes for django_ismobile-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7840eb48fe00a313431080ff8fad0cd8b8fdf72a4b72d6096f8ac7fc9c5402c |
|
MD5 | 9a5f5964fee4885487524ee1119a091d |
|
BLAKE2b-256 | dd9dc7bd1c6d7b239efeed5ca863d020785d4e9f79b1e489d60b71130f98dd50 |