I have tried using request.META['HTTP_USER_AGENT'] for detecting the browser . But this returns the type of browsers list when i tested on
chrome: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
instead of just returning chrome and similarly on :
edge: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
mozilla: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
** I am not able to get the pattern in which it is returning values. Can anyone tell the way by which i could get the browser name
why_every_user_agent_string_start_with_mozilla
and direct link to the article – Ralf