
    h
                         S SK Jr  S SKJr  S SKJr  S SKJrJrJ	r	  S SK
Jr  S SKJr  S SKJr  S SKJr  S	rS
 r\S 5       rg)    )settings)FlatPage)get_current_site)Http404HttpResponseHttpResponsePermanentRedirect)get_object_or_404)loader)	mark_safe)csrf_protectzflatpages/default.htmlc                 d   UR                  S5      (       d  SU-   n[        U 5      R                  n [        [        XS9n[        X5      $ ! [
         aZ    UR                  S5      (       dB  [        R                  (       a-  US-  n[        [        XS9n[        SU R                  -  5      s $ e f = f)a  
Public interface to the flat page view.

Models: `flatpages.flatpages`
Templates: Uses the template defined by the ``template_name`` field,
    or :template:`flatpages/default.html` if template_name is not defined.
Context:
    flatpage
        `flatpages.flatpages` object
/)urlsitesz%s/)
startswithr   idr	   r   r   endswithr   APPEND_SLASHr   pathrender_flatpage)requestr   site_idfs       P/var/www/html/env/lib/python3.13/site-packages/django/contrib/flatpages/views.pyflatpager      s     >>#Ciw'**GhC? 7&&  ||C  X%:%:3JC!(CA01EFFs   A A B/-B/c                    UR                   (       a3  U R                  R                  (       d  SSKJn  U" U R
                  5      $ UR                  (       a'  [        R                  " UR                  [        45      nO[        R                  " [        5      n[        UR                  5      Ul        [        UR                  5      Ul        [        UR                  SU0U 5      5      $ )z+
Internal interface to the flat page view.
r   )redirect_to_loginr   )registration_requireduseris_authenticateddjango.contrib.auth.viewsr   r   template_namer
   select_templateDEFAULT_TEMPLATEget_templater   titlecontentr   render)r   r   r   templates       r   r   r   0   s     	w||'D'D? ..))1??<L*MN&&'78
  AG!))$AIQABB    N)django.confr   django.contrib.flatpages.modelsr   django.contrib.sites.shortcutsr   django.httpr   r   r   django.shortcutsr	   django.templater
   django.utils.safestringr   django.views.decorators.csrfr   r$   r   r    r*   r   <module>r4      sA      4 ; L L . " - 5+ '4 C Cr*   