
    LȂi                         S SK r S SKJr  SSKJrJrJrJr  \" SSS9r\" SS	S9r	S
 r
\" \R                  SS9S 5       r\" \R                  SS9S 5       r\" \R                  5      S 5       rg)    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idzYou 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                  (    S[         R                  ;   $ )Nz)django.middleware.csrf.CsrfViewMiddleware)r   
MIDDLEWARE     QD:\sksbv-state-backend\venv\Lib\site-packages\django/core/checks/security/csrf.py_csrf_middlewarer      s    6(:M:MMMr   T)deployc                 6    [        5       nU(       a  / $ [        /$ )N)r   W003app_configskwargspassed_checks      r   check_csrf_middlewarer      s    #%L2)D6)r   c                     [         R                  =(       d(    [        5       (       + =(       d    [         R                  SL nU(       a  / $ [        /$ )NT)r   CSRF_USE_SESSIONSr   CSRF_COOKIE_SECUREW016r   s      r   check_csrf_cookie_securer   #   sD     	"" 	/!!	/&&$. 
 2)D6)r   c                 d   SSK Jn  / n U" 5       n [        R                  " U5      R	                  S S S9  U$ ! [
         a0    S[        R                  -  nUR                  [        USS95         U$ f = f! [         a0    S[        R                  -  nUR                  [        USS95         U$ f = f)	Nr   )_get_failure_view)reasonzIThe CSRF failure view '%s' does not take the correct number of arguments.zsecurity.E101r	   z1The CSRF failure view '%s' could not be imported.zsecurity.E102)django.middleware.csrfr   inspect	signaturebind	TypeErrorr   CSRF_FAILURE_VIEWappendr   ImportError)r   r   r   errorsviewmsgs         r   check_csrf_failure_viewr,   -   s    8F: "	:d#((d(; M  	:'99:  MM%89M	:  6?(() 	 	eCO45 M6s    A5 $8 6A21A256B/.B/)r"   django.confr    r   r   r   r   r   r   r   securityr   r   r,   r   r   r   <module>r0      s       - -+
  0 N 
$--%* &*
 
$--%* &* 
$-- r   