Is it possible to detect the browser version from Django server side?
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")
精彩评论