/usr/local/lib/python3.9/site-packages/django/template/__pycache__
a Ӱ�h� � @ sp d Z ddlZddlmZ ddlmZ ddlmZmZ dd� Z dd � Z d d� Zdd � Zdd� 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�lazyc s � 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 c s t � �} | d u rdS | S d S )NZNOTPROVIDEDr )�token��request� �L/usr/local/lib/python3.9/site-packages/django/template/context_processors.py�_get_val s zcsrf.<locals>._get_valZ csrf_token)r )r r r r r �csrf s r c sJ i }t jrF| j�d�t jv rFd|d<