
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
django-mobile-detect
Advanced tools
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.
this package development based from php big repository Mobile-Detect <https://github.com/serbanghita/mobile-detect>
_
.. image:: http://demo.mobiledetect.net/logo-github.png
Python package install::
pip install django-mobile-detect
Add mobiledetect
to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'mobiledetect', ]
Middleware::
MIDDLEWARE_CLASSES = ( '...', 'mobiledetect.middleware.DetectMiddleware', '...' )
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
FAQs
Device browser detection in Django
We found that django-mobile-detect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.