django-mobile-redirect-1.0.0
توضیحات
Redirects devices with mobile user agent strings to a specified url.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-mobile-redirect-1.0.0 |
| نام | django-mobile-redirect |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ryan Bagwell |
| ایمیل نویسنده | ryan@ryanbagwell.com |
| آدرس صفحه اصلی | https://github.com/ryanbagwell/django-mobile-redirect |
| آدرس اینترنتی | https://pypi.org/project/django-mobile-redirect/ |
| مجوز | MIT |
======================
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/
نحوه نصب
نصب پکیج whl django-mobile-redirect-1.0.0:
pip install django-mobile-redirect-1.0.0.whl
نصب پکیج tar.gz django-mobile-redirect-1.0.0:
pip install django-mobile-redirect-1.0.0.tar.gz