Redirects devices with mobile user agent strings to a specified url.
Django middleware to redirect mobile devices to the given url.
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.