ó
    ´Rj¤
  ã                   ó†   • 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       ÚJD:\diplom_project\venv\Lib\site-packages\django/contrib/flatpages/views.pyÚflatpager      sž   € ð �>‰>˜#×ÑØ�C‰iˆÜ˜wÓ'×*Ñ*€GðÜœh¨CÑ?ˆô ˜7Ó&Ð&øô ó Ø�|‰|˜C× Ñ ¤X×%:×%:Ø�3‰JˆCÜ!¤(°ÑCˆAÜ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ˆô
 ˜Ÿ™Ó €A„GÜ˜!Ÿ)™)Ó$€A„Iä˜Ÿ™¨°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*   