ó
    ½Rj¢  ã                   ób   • 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
)é    )Úsettings)ÚHttpResponseForbidden)ÚContextÚEngineÚTemplateDoesNotExistÚloader)Úgettext)Úget_docs_versionu(  
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE">
  <title>403 Forbidden</title>
  <style type="text/css">
    html * { padding:0; margin:0; }
    body * { padding:10px 20px; }
    body * * { padding:0; }
    body { font:small sans-serif; background:#eee; color:#000; }
    body>div { border-bottom:1px solid #ddd; }
    h1 { font-weight:normal; margin-bottom:.4em; }
    h1 span { font-size:60%; color:#666; font-weight:normal; }
    #info { background:#f6f6f6; }
    #info ul { margin: 0.5em 4em; }
    #info p, #summary p { padding-top:10px; }
    #summary { background: #ffc; }
    #explanation { background:#eee; border-bottom: 0px none; }
  </style>
</head>
<body>
<div id="summary">
  <h1>{{ title }} <span>(403)</span></h1>
  <p>{{ main }}</p>
{% if no_referer %}
  <p>{{ no_referer1 }}</p>
  <p>{{ no_referer2 }}</p>
  <p>{{ no_referer3 }}</p>
{% endif %}
{% if no_cookie %}
  <p>{{ no_cookie1 }}</p>
  <p>{{ no_cookie2 }}</p>
{% endif %}
</div>
{% if DEBUG %}
<div id="info">
  <h2>Help</h2>
    {% if reason %}
    <p>Reason given for failure:</p>
    <pre>
    {{ reason }}
    </pre>
    {% endif %}

  <p>In general, this can occur when there is a genuine Cross Site Request Forgery, or when
  <a
  href="https://docs.djangoproject.com/en/{{ docs_version }}/ref/csrf/">Djangoâ€™s
  CSRF mechanism</a> has not been used correctly.  For POST forms, you need to
  ensure:</p>

  <ul>
    <li>Your browser is accepting cookies.</li>

    <li>The view function passes a <code>request</code> to the templateâ€™s <a
    href="https://docs.djangoproject.com/en/dev/topics/templates/#django.template.backends.base.Template.render"><code>render</code></a>
    method.</li>

    <li>In the template, there is a <code>{% templatetag openblock %} csrf_token
    {% templatetag closeblock %}</code> template tag inside each POST form that
    targets an internal URL.</li>

    <li>If you are not using <code>CsrfViewMiddleware</code>, then you must use
    <code>csrf_protect</code> on any views that use the <code>csrf_token</code>
    template tag, as well as those that accept the POST data.</li>

    <li>The form has a valid CSRF token. After logging in in another browser
    tab or hitting the back button after a login, you may need to reload the
    page with the form, because the token is rotated after a login.</li>
  </ul>

  <p>Youâ€™re seeing the help section of this page because you have <code>DEBUG =
  True</code> in your Django settings file. Change that to <code>False</code>,
  and only the initial error message will be displayed.  </p>

  <p>You can customize this page using the CSRF_FAILURE_VIEW setting.</p>
</div>
{% else %}
<div id="explanation">
  <p><small>{{ more }}</small></p>
</div>
{% endif %}
</body>
</html>
z403_csrf.htmlÚ c                 óÞ  • 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5      5      $ ! [         a6    U[        :X  a*  [        5       R                  [        5      n[        U5      n NXe 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.zÍYou 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)Údjango.middleware.csrfr   r   Ú_r   r   r
   r   Úget_templater   ÚCSRF_FAILURE_TEMPLATE_NAMEr   Úfrom_stringÚCSRF_FAILURE_TEMPLATEr   r   Úrender)Úrequestr   Útemplate_namer   r   ÚcÚts          Ú=D:\diplom_project\venv\Lib\site-packages\django/views/csrf.pyÚcsrf_failurer)   h   sú   € ÷ Pô �;“ÜÐ>Ó?ØØÑ1ÜðHó
ô ð>ó
ô
 ðGó
ð Ñ4Üð)ó
ô ðó
ô
 —‘Ü(Ó*ÜÐBÓCñM'	€AðP	Ü×Ò Ó.ˆô ! §¡¨!£Ó-Ð-øô  ó ØÔ6Ó6ä“×$Ñ$Ô%:Ó;ˆAÜ˜“
ŠAð ðús   Á<B, Â,<C,Ã*C,N)Údjango.confr   Údjango.httpr   Údjango.templater   r   r   r   Údjango.utils.translationr	   r   Údjango.utils.versionr
   r"   r    r)   © ó    r(   Ú<module>r1      s6   ðÝ  Ý -ß IÓ IÝ 1Ý 1ðUÐ ðl -Ð ð "$Ð3Mõ 8.r0   