'Determines best available locale from the Accept-Language header.
:returns: the best language match or None if the \'Accept-Language\'
header was not available in the request.'

def best_match_language(self):

    if (not self.accept_language):
        return None
    langs = i18n.get_available_languages('glance')
    return self.accept_language.best_match(langs)
