§
    ¤”j¤
  ã                   óŽ   — d dl mZ d dlmZ d dlmZ d dlmZmZm	Z	 d dl
mZ d dlmZ d dlmZ d dlmZ d	Zd
„ Zed„ ¦   «         ZdS )é    )Úsettings)ÚFlatPage)Úget_current_site)ÚHttp404ÚHttpResponseÚHttpResponsePermanentRedirect)Úget_object_or_404)Úloader)Ú	mark_safe)Úcsrf_protectzflatpages/default.htmlc                 óz  — |                      d¦  «        sd|z   }t          | ¦  «        j        }	 t          t          ||¬¦  «        }ne# t
          $ rX |                     d¦  «        sAt          j        r5|dz  }t          t          ||¬¦  «        }t          d| j
        z  ¦  «        cY S ‚ w xY wt          | |¦  «        S )a3  
    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       úm/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/django/contrib/flatpages/views.pyÚflatpager      sÒ   € ð �>Š>˜#ÑÔð Ø�C‰iˆÝ˜wÑ'Ô'Ô*€GðÝ�h¨C°wÐ?Ñ?Ô?ˆˆøÝð ð ð Ø�|Š|˜CÑ Ô ð 	¥XÔ%:ð 	Ø�3‰JˆCÝ!¥(°¸7ÐCÑCÔCˆAÝ0°¸¼Ñ1EÑFÔFÐFÐFÐFàðøøøõ ˜7 AÑ&Ô&Ð&s   °A ÁAB*Â(B*c                 ó„  — |j         r"| j        j        sddlm}  || j        ¦  «        S |j        r!t          j        |j        t          f¦  «        }nt          j
        t          ¦  «        }t          |j        ¦  «        |_        t          |j        ¦  «        |_        t          |                     d|i| ¦  «        ¦  «        S )z3
    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ð /Ø?Ð?Ð?Ð?Ð?Ð?à Ð  ¤Ñ.Ô.Ð.Ø„ð 9ÝÔ)¨1¬?Õ<LÐ*MÑNÔNˆˆåÔ&Õ'7Ñ8Ô8ˆõ
 ˜œÑ Ô €A„GÝ˜!œ)Ñ$Ô$€A„Iå˜Ÿš¨°Q¨¸ÑAÔAÑBÔ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      sà   ðØ  Ð  Ð  Ð  Ð  Ð  Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LØ .Ð .Ð .Ð .Ð .Ð .Ø "Ð "Ð "Ð "Ð "Ð "Ø -Ð -Ð -Ð -Ð -Ð -Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5à+Ð ð'ð 'ð 'ð4 ðCð Cñ „ðCð Cð Cr*   