← Back
Editing: context_processors.cpython-311.pyc
� �|�eh � �d � d Z ddlZddlmZ ddlmZ ddlmZmZ d� Z d� Z d� Zd � Zd � Z d� Zd� 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�lazyc �0 � � � fd�}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 c �. �� t �� � } | �dS | S )N�NOTPROVIDEDr )�token�requests ��D/usr/lib/python3/dist-packages/django/template/context_processors.py�_get_valzcsrf.<locals>._get_val s! �� ��'�"�"���=� !�=��L� � csrf_token)r )r r s ` r �csrfr s2 �� � � � � � � �*�8�4�4�5�5r c � �� i }t j rL| j � d� � t j v r&d|d<