File: //usr/lib/python3/dist-packages/django/core/checks/security/__pycache__/csrf.cpython-310.pyc
o
�a� � @ s� d dl Z d dlmZ ddlmZmZmZmZ eddd�Zedd d�Z d
d� Z
eejdd
�dd� �Zeejdd
�dd� �Z
eej�dd� �ZdS )� N)�settings� )�Error�Tags�Warning�registera You don't appear to be using Django's built-in cross-site request forgery protection via the middleware ('django.middleware.csrf.CsrfViewMiddleware' is not in your MIDDLEWARE). Enabling the middleware is the safest approach to ensure you don't leave any holes.z
security.W003��idz�You have 'django.middleware.csrf.CsrfViewMiddleware' in your MIDDLEWARE, but you have not set CSRF_COOKIE_SECURE to True. Using a secure-only CSRF cookie makes it more difficult for network traffic sniffers to steal the CSRF token.z
security.W016c C s
dt jv S )Nz)django.middleware.csrf.CsrfViewMiddleware)r �
MIDDLEWARE� r r �B/usr/lib/python3/dist-packages/django/core/checks/security/csrf.py�_csrf_middleware s
r
T)�deployc K s t � }|rg S tgS �N)r
�W003��app_configs�kwargs�passed_checkr r r �check_csrf_middleware s r c K s"