|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/middleware/ |
Upload File : |
�
r�\c @ s� d Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m
Z
d d l m Z d d l
m Z d e f d � � YZ d
S( sH This is the locale selecting middleware that will look at accept headersi����( t settings( t
is_valid_patht get_resolvert LocaleRegexURLResolver( t HttpResponseRedirect( t patch_vary_headers( t translation( t
SortedDictt LocaleMiddlewarec B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s
This is a very simple middleware that parses a request
and decides what translation object to install in the current
thread context. This allows pages to be dynamically
translated to the language the user desires (if the language
is available, of course).
c C sU t t j � | _ t | _ x3 t d � j D]"