
    MȂiS
                     t    S r SSKrSSKJr  SSKJr  SSKJr  SSKJ	r	J
r
  S rS rS	 rS
 rS rS rS rS rg)aR  
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.

These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend and used by RequestContext.
    N)settings	get_nonce	get_token)SimpleLazyObjectlazyc                 *   ^  U 4S jnS[        U5      0$ )z
Context processor that provides a CSRF token, or the string 'NOTPROVIDED'
if it has not been provided by either a view decorator or the middleware
c                  &   > [        T5      n U c  gU $ )NNOTPROVIDEDr   )tokenrequests    SD:\sksbv-state-backend\venv\Lib\site-packages\django/template/context_processors.py_get_valcsrf.<locals>._get_val   s    '"= !L    
csrf_token)r   )r   r   s   ` r   csrfr      s     *8455r   c                    ^ 0 n[         R                  (       aO  U R                  R                  S5      [         R                  ;   a"  SUS'   SSKJm  [        U4S j[        5      US'   U$ )z1
Return context variables helpful for debugging.
REMOTE_ADDRTdebugr   connectionsc                  h   > [        [        R                  R                  U 4S jT  5       5      5      $ )Nc              3   @   >#    U H  nTU   R                   v   M     g 7f)N)queries).0xr   s     r   	<genexpr>*debug.<locals>.<lambda>.<locals>.<genexpr>2   s      .4?qKN**Ks   )list	itertoolschainfrom_iterabler   s   r   <lambda>debug.<locals>.<lambda>1   s)    D-- .4?. r   sql_queries)	r   DEBUGMETAgetINTERNAL_IPS	django.dbr   r	   r!   )r   context_extrasr   s     @r   r   r   %   s]     N~~',,**=9X=R=RR"&w) )-
 )
}% r   c                 n    SSK Jn  [        R                  UR	                  5       UR                  5       S.$ )Nr   )translation)	LANGUAGESLANGUAGE_CODELANGUAGE_BIDI)django.utilsr/   r   r0   get_languageget_language_bidi)r   r/   s     r   i18nr6   ;   s2    ( ''$113$668 r   c                 2    SSK Jn  SUR                  5       0$ )Nr   )timezone	TIME_ZONE)r3   r8   get_current_timezone_name)r   r8   s     r   tzr;   E   s    %;;=>>r   c                 &    S[         R                  0$ )z6
Add static-related context variables to the context.

STATIC_URL)r   r=   r   s    r   staticr?   K   s     (--..r   c                 &    S[         R                  0$ )z5
Add media-related context variables to the context.
	MEDIA_URL)r   rA   r>   s    r   mediarB   R   s     ++,,r   c                 
    SU 0$ )Nr    r>   s    r   r   r   Y   s    wr   c                     S[        U 5      0$ )z#
Add the CSP nonce to the context.
	csp_noncer   r>   s    r   csprG   ]   s     7+,,r   )__doc__r"   django.confr   django.middleware.cspr   django.middleware.csrfr   django.utils.functionalr   r	   r   r   r6   r;   r?   rB   r   rG   rD   r   r   <module>rM      sC       + , :6&,?/- -r   