How to detect Browser type in Django?
问题 How can i detect which browser type the client is using. I have a problem where i have to ask people to use different browser (Firefox) instead of IE. How can i get this information. I know http request has this information (Header). How will i get the navigator.appName from the view.py in the Django framework ? 回答1: You can extract that information from the request object like so: request.META['HTTP_USER_AGENT'] 回答2: There are multiple ways of getting that done. The easiest way is what