Metadata-Version: 1.2
Name: django-mobile-detect
Version: 0.1
Summary: Device browser detection in Django
Home-page: https://github.com/Botir/Django-Mobile-Detector
Author: Botir Ziyatov
Author-email: botirziyatov@gmail.com
License: MIT
Description: Django Mobile Detector
        ======================
        
        Mobile Detect is a lightweight Python package for detecting mobile devices (including tablets).
        It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
        
        PHP
        ===
        this package development based from php big repository `Mobile-Detect <https://github.com/serbanghita/mobile-detect>`_
        
        .. image:: http://demo.mobiledetect.net/logo-github.png
        
        Installation
        ============
        1. Python package install::
        
            pip install django-mobile-detect
        
        
        2. Add ```mobiledetect``` to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'mobiledetect',
            ]
        
        3. Middleware::
        
            MIDDLEWARE_CLASSES = (
                '...',
                'mobiledetect.middleware.DetectMiddleware',
                '...'
            )
        
        View Usage
        ----------
        
        You can use in views
        
            Check if the device is mobile.
        
        ::
        
            request.device.is_mobile
        
        |
        
            Check if the device is a tablet.
        
        ::
        
            request.device.is_tablet
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.8
