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/views/decorators/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/views/decorators/csrf.pyc
�
r�\c@s�ddlmZmZddlmZmZddlmZee�Zde_	de_
defd��YZee�Zde_	d	e_
d
efd��YZ
ee
�Zde_	d
e_
d�ZdS(i����(tCsrfViewMiddlewaret	get_token(tdecorator_from_middlewaretavailable_attrs(twrapstcsrf_protects�
This decorator adds CSRF protection in exactly the same way as
CsrfViewMiddleware, but it can be used on a per view basis.  Using both, or
using the decorator multiple times, is harmless and efficient.
t_EnsureCsrfTokencBseZd�ZRS(cCsdS(N(tNone(tselftrequesttreason((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyt_rejects(t__name__t
__module__R(((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyRstrequires_csrf_tokens�
Use this decorator on views that need a correct csrf_token available to
RequestContext, but without the CSRF protection that csrf_protect
enforces.
t_EnsureCsrfCookiecBseZd�Zd�ZRS(cCsdS(N(R(RR	R
((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyRscCs/tt|�j||||�}t|�|S(N(tsuperRtprocess_viewR(RR	tcallbackt
callback_argstcallback_kwargstretval((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyR"s!
(RR
RR(((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyRs	tensure_csrf_cookies�
Use this decorator to ensure that a view sets a CSRF cookie, whether or not it
uses the csrf_token template tag, or the CsrfViewMiddleware is used.
cs4�fd�}t|_t�dt���|�S(sN
    Marks a view function as being exempt from the CSRF view protection.
    cs
�||�S(N((targstkwargs(t	view_func(s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pytwrapped_view8stassigned(tTruetcsrf_exemptRR(RR((Rs>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyR1s	N(tdjango.middleware.csrfRRtdjango.utils.decoratorsRRt	functoolsRRRt__doc__RRRRR(((s>/tmp/pip-install-XxeQeY/django/django/views/decorators/csrf.pyt<module>s						

https://t.me/AnonymousX5 - 2025