[英]Django what do you suggest for mobile request recognition from view?
I am bit lost to recognise if the url asked is from a mobile or a browser, specially since minidetector hasn't been update for 5 years and since python 3 removed has_key(). 我有点不知道要问的网址是来自移动设备还是浏览器,特别是因为minidetector已有5年没有更新,并且python 3删除了has_key()。
So, what would be the best way to detect if it's a mobile and from what browser' mobile it came from ? 那么,检测它是否是移动设备以及来自哪个浏览器的移动设备的最佳方法是什么? With size screen ?
带屏幕尺寸?
Is django-mobile worse it ? django-mobile更糟吗?
Edit : what I want to do is simply catch the mobile browser and redirect to an application store link. 编辑:我想做的就是简单地捕获移动浏览器并重定向到应用程序商店链接。
Many thanks in advance. 提前谢谢了。
Looks like there's a fairly up-to-date fork of minidetector
around the same age as django-mobile
. 看起来好像有一个与
django-mobile
处于同一年龄的minidetector
的最新版本 。 I've used django-mobile
in the past and it worked for me, but that was about 3 years ago now. 我过去使用过
django-mobile
,它对我有用,但是那大约是3年前了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.