Redirects devices with mobile user agent strings to a specified url.
Project description
Django middleware to redirect mobile devices to the given url.
Installation and Configuration
Install with pip:
pip install ...
Add the following to Django settings:
MIDDLEWARE_CLASSES = [ 'mobile_redirect.middleware.MobileRedirectMiddleware', ] 'MOBILE_REDIRECT_URL' = 'https://github.com/ryanbagwell/django-mobile-redirect'
Requests with user agent strings matching mobile and tablet devices will be redirected to the specified url
Mobile and tablet devices are defined according to the data at browscap.org.
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
File details
Details for the file django-mobile-redirect-1.0.0.tar.gz
.
File metadata
- Download URL: django-mobile-redirect-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea6cf6010cbeb59438e08091fe33b5b613ba473b12e4e0289303922a91b3161 |
|
MD5 | 2a7b4e379c07a962691d83ae753e9458 |
|
BLAKE2b-256 | 2ca584d217e1277675b4d4b412ebfcffdbbf8431984040e5e401a8dfcbbc69e9 |