You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-mobile-redirect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-mobile-redirect

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

1.0.0
pipPyPI
Maintainers
1

====================== django-mobile-redirect

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

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_.

.. _browscap.org: http://browscap.org/

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts