New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

django-mobile-detector

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-mobile-detector

A small app to detect mobile browsers.

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

A small Django application to detect mobile browsers.

Provides a template context processor so your templates can always know if the user happens to be viewing your site from a mobile browser. The detection is crude, and user agents are always changing.

I'm just creating this project for a simple app I have on a personal project that doesn't really matter if we get the detection right or wrong. I'm mostly just concerned about finding android or iphone.

By Default, there will be a cookie set called "use_mobile" and the value will be true or false depending on whether you want the mobile view or desktop view. If you want to change the cookie name, change the MOBILE_COOKIE_NAME setting.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc