Skip to main content

Redirects devices with mobile user agent strings to a specified url.

Project description

https://circleci.com/gh/ryanbagwell/django-mobile-redirect/tree/master.svg?circle-token=e1a063c0881f0c592377120677a8ad969c3a2932

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

This version
History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-mobile-redirect-1.0.0.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None May 1, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page