
    ha                     p    S SK Jr  S SKJr  S SKJr  S SKJrJrJ	r	J
r
  S SKJr  S SKJr  SrS rS	\4S
 jrg)    )Path)settings)HttpResponseForbidden)ContextEngineTemplateDoesNotExistloader)gettext)get_docs_versionz403_csrf.htmlc                 @    [        [        5      R                  S-  U -  $ )z
Return a path to a builtin template.

Avoid calling this function at the module level or in a class-definition
because __file__ may not exist, e.g. in frozen environments.
	templates)r   __file__parent)names    C/var/www/html/env/lib/python3.13/site-packages/django/views/csrf.pybuiltin_template_pathr      s     >  ;.55     c                 v   SSK JnJn  [        S5      [        S5      UX:H  [        S5      [        S5      [        S5      X:H  [        S5      [        S	5      [        R
                  [        5       [        S
5      S.n [        R                  " U5      nUR                  U S9n[%        U5      $ ! [         a    U[        :X  av  [        S5      R                  SS9 n[        5       R                  UR!                  5       5      nSSS5        O! , (       d  f       O= fWR                  [#        U5      5      n Ne f = f)z6
Default view used when request fails CSRF protection
r   )REASON_NO_CSRF_COOKIEREASON_NO_REFERER	Forbiddenz*CSRF verification failed. Request aborted.u   You are seeing this message because this HTTPS site requires a “Referer header” to be sent by your web browser, but none was sent. This header is required for security reasons, to ensure that your browser is not being hijacked by third parties.u   If you have configured your browser to disable “Referer” headers, please re-enable them, at least for this site, or for HTTPS connections, or for “same-origin” requests.u^  If you are using the <meta name="referrer" content="no-referrer"> tag or including the “Referrer-Policy: no-referrer” header, please remove them. The CSRF protection requires the “Referer” header to do strict referer checking. If you’re concerned about privacy, use alternatives like <a rel="noreferrer" …> for links to third-party sites.zYou are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties.u   If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for “same-origin” requests.z.More information is available with DEBUG=True.)titlemainreason
no_refererno_referer1no_referer2no_referer3	no_cookie
no_cookie1
no_cookie2DEBUGdocs_versionmore)requestzcsrf_403.htmlzutf-8)encodingN)django.middleware.csrfr   r   _r   r#   r   r	   get_templaterenderr   CSRF_FAILURE_TEMPLATE_NAMEr   openr   from_stringreadr   r   )	r&   r   template_namer   r   ctbodyfhs	            r   csrf_failurer5      s6    P ;>?1H
 >

 G
 4)
 

 (*BCM'	AP.xxx( !&&   66&7<<g<NRTH((3 ONN88GAJ'D s*   <%B, ,,D8(D	 	D8	
D	!D86D8N)pathlibr   django.confr   django.httpr   django.templater   r   r   r	   django.utils.translationr
   r)   django.utils.versionr   r,   r   r5    r   r   <module>r=      s2       - I I 1 1, 6 "$3M :'r   