in server side开发者_开发百科, not browser.
You can use the HTTP_USER_AGENT in HttpRequest
request.env['HTTP_USER_AGENT'] will give the user agent string the browser sent.
Unfortunately request.env won't work.
However, you can get it through request.META.get("HTTP_USER_AGENT")
加载中,请稍侯......
精彩评论