
    hn                         S SK Jr  S SKJrJrJrJr  S SKJrJ	r	J
r
Jr  S SKJr  SrSrSrSrS	r\\4S
 j5       r\\4S j5       r\\4S j5       r\\4S j5       rg)    )quote)HttpResponseBadRequestHttpResponseForbiddenHttpResponseNotFoundHttpResponseServerError)ContextEngineTemplateDoesNotExistloader)requires_csrf_tokenz404.htmlz403.htmlz400.htmlz500.htmlz
<!doctype html>
<html lang="en">
<head>
  <title>%(title)s</title>
</head>
<body>
  <h1>%(title)s</h1><p>%(details)s</p>
</body>
</html>
c                    UR                   R                  n UR                  S   n[        U[        5      (       a  Un[        U R                  5      US.n [        R                  " U5      nUR                  XP5      n[%        U5      $ ! [
        [        4 a     N]f = f! [         aK    U[        :w  a  e [        5       R                  [         SSS.-  5      nUR                  [#        U5      5      n Nuf = f)aZ  
Default 404 handler.

Templates: :template:`404.html`
Context:
    request_path
        The path of the requested URL (e.g., '/app/pages/bad_page/'). It's
        quoted to prevent a content injection attack.
    exception
        The message from the exception which triggered the 404 (if one was
        supplied), or the exception class name
r   )request_path	exceptionz	Not Foundz4The requested resource was not found on this server.titledetails)	__class____name__args
isinstancestrAttributeError
IndexErrorr   pathr   get_templaterenderr
   ERROR_404_TEMPLATE_NAMEr	   from_stringERROR_PAGE_TEMPLATEr   r   )requestr   template_nameexception_reprmessagecontexttemplatebodys           G/var/www/html/env/lib/python3.13/site-packages/django/views/defaults.pypage_not_foundr(   "   s     ((11N%..# gs##$Ngll+#G1&&}5w0  %%5 J'    133 8''$Q
 ww/01s$   B	 'B 	BBAC43C4c                      [         R                  " U5      n[	        UR                  5       5      $ ! [         a#    U[        :w  a  e [	        [
        SSS.-  5      s $ f = f)zC
500 error handler.

Templates: :template:`500.html`
Context: None
zServer Error (500) r   )r   r   r
   ERROR_500_TEMPLATE_NAMEr   r   r   )r    r!   r%   s      r'   server_errorr,   R   sc    
&&}5 #8??#455   
33&,@R"PP
 	
	
s   1 *AAc                      [         R                  " U5      nUR                  U S9n[        U5      $ ! [         a#    U[        :w  a  e [        [        SSS.-  5      s $ f = f)zC
400 error handler.

Templates: :template:`400.html`
Context: None
)r    zBad Request (400)r*   r   )r   r   r   r
   ERROR_400_TEMPLATE_NAMEr   r   )r    r   r!   r%   r&   s        r'   bad_requestr/   f   sl    	
&&}5w/ "$''   
33%,?B"OO
 	
	
s   %2 *AAc           	           [         R                  " U5      n[	        UR                  U S[        U5      0S95      $ ! [         a#    U[        :w  a  e [	        [
        SSS.-  5      s $ f = f)aD  
Permission denied (403) handler.

Templates: :template:`403.html`
Context:
    exception
        The message from the exception which triggered the 403 (if one was
        supplied).

If the template does not exist, an Http403 response containing the text
"403 Forbidden" (as per RFC 9110 Section 15.5.4) will be returned.
z403 Forbiddenr*   r   r   )r    r$   )r   r   r
   ERROR_403_TEMPLATE_NAMEr   r   r   r   )r    r   r!   r%   s       r'   permission_deniedr2   }   sv    
&&}5 !+s9~1NO    
33$O"KK
 	
	
s   < *A)(A)N)urllib.parser   django.httpr   r   r   r   django.templater   r	   r
   r   django.views.decorators.csrfr   r   r1   r.   r+   r   r(   r,   r/   r2        r'   <module>r9      s      J I <$ $ $ $ 
 $ 5L ,& ,&^ (? 6 6& 2I ( (, 8O  r8   