https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/template/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/template/__pycache__/context_processors.cpython-310.pyc
o

�ah	�@spdZddlZddlmZddlmZddlmZmZdd�Z	dd	�Z
d
d�Zdd
�Zdd�Z
dd�Zdd�ZdS)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�lazycs�fdd�}dt|�iS)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
    cst��}|dur
dS|S)N�NOTPROVIDEDr)�token��request��D/usr/lib/python3/dist-packages/django/template/context_processors.py�_get_valszcsrf.<locals>._get_val�
csrf_token)r)r
r
rr	r�csrfs
rcsJi}tjr#|j�d�tjvr#d|d<ddlm�t�fdd�t�|d<|S)	z9
    Return context variables helpful for debugging.
    �REMOTE_ADDRT�debugr��connectionscsttj��fdd��D���S)Nc3s�|]}�|jVqdS)N)�queries)�.0�xrrr�	<genexpr>/s�z*debug.<locals>.<lambda>.<locals>.<genexpr>)�list�	itertools�chain�
from_iterablerrrr�<lambda>/szdebug.<locals>.<lambda>�sql_queries)	r�DEBUG�META�get�INTERNAL_IPS�	django.dbrrr)r
�context_extrasrrrr#s
�rcCs"ddlm}tj|��|��d�S)Nr)�translation)�	LANGUAGES�
LANGUAGE_CODE�
LANGUAGE_BIDI)�django.utilsr$rr%�get_language�get_language_bidi)r
r$rrr�i18n5s
�r+cCsddlm}d|��iS)Nr)�timezone�	TIME_ZONE)r(r,�get_current_timezone_name)r
r,rrr�tz>sr/cC�
dtjiS)z>
    Add static-related context variables to the context.
    �
STATIC_URL)rr1r	rrr�staticC�
r2cCr0)z=
    Add media-related context variables to the context.
    �	MEDIA_URL)rr4r	rrr�mediaJr3r5cCsd|iS)Nr
rr	rrrr
Qsr
)�__doc__r�django.confr�django.middleware.csrfr�django.utils.functionalrrrrr+r/r2r5r
rrrr�<module>s		

https://t.me/RX1948 - 2025