
    h	                     b    S r SSK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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_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    T/var/www/html/env/lib/python3.13/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   B   >#    U  H  nTU   R                   v   M     g 7f)N)queries).0xr   s     r   	<genexpr>*debug.<locals>.<lambda>.<locals>.<genexpr>1   s      .4?qKN**Ks   )list	itertoolschainfrom_iterabler   s   r   <lambda>debug.<locals>.<lambda>0   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   r.   get_languageget_language_bidi)r   r-   s     r   i18nr4   :   s2    ( ''$113$668 r   c                 2    SSK Jn  SUR                  5       0$ )Nr   )timezone	TIME_ZONE)r1   r6   get_current_timezone_name)r   r6   s     r   tzr9   D   s    %;;=>>r   c                 &    S[         R                  0$ )z6
Add static-related context variables to the context.

STATIC_URL)r   r;   r   s    r   staticr=   J   s     (--..r   c                 &    S[         R                  0$ )z5
Add media-related context variables to the context.
	MEDIA_URL)r   r?   r<   s    r   mediar@   Q   s     ++,,r   c                 
    SU 0$ )Nr    r<   s    r   r   r   X   s    wr   )__doc__r    django.confr   django.middleware.csrfr   django.utils.functionalr   r   r   r   r4   r9   r=   r@   r   rB   r   r   <module>rG      s;       , :6&,?/- r   