django1/django/middleware
Bouke Haarsma 2bab9d6d9e Fixed #21389 -- Accept most valid language codes
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.

HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
2014-02-26 16:58:04 +01:00
..
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
cache.py Fixed #21012 -- New API to access cache backends. 2013-11-23 15:06:59 +01:00
clickjacking.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
common.py Fixed E125 pep8 warnings 2013-11-28 08:50:11 -05:00
csrf.py Fixed flake8 E251 violations 2013-11-03 03:22:11 -06:00
doc.py Fixed #21302 -- Fixed unused imports and import *. 2013-11-02 15:24:56 -04:00
gzip.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
http.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
locale.py Fixed #21389 -- Accept most valid language codes 2014-02-26 16:58:04 +01:00
transaction.py More attacking E302 violators 2013-11-02 13:12:09 -07:00