title: Python - Extract Main Language Code from HTTP / Browser
body: <p>I need a way to determine the main language set in a browser. I found a really great solution for PHP but unfortunately I'm using Django / Python.</p>
  
  <p>I think the information is within the HTTP_ACCEPT_LANGUAGE attribute of the HTTP Request.</p>
  
  <p>Any ideas or ready-made functions for me?</p>