Skip to main content
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.

Metadata

Release files for django-mobile-redirect 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mobile-redirect 1.0.0
File Size Uploaded
django-mobile-redirect-1.0.0.tar.gz 3.6 kB Details

Release files / django-mobile-redirect-1.0.0.tar.gz

Download URL django-mobile-redirect-1.0.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eea6cf6010cbeb59438e08091fe33b5b613ba473b12e4e0289303922a91b3161
BLAKE2b-256 checksum
How to use checksums
2ca584d217e1277675b4d4b412ebfcffdbbf8431984040e5e401a8dfcbbc69e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page