https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/staticfiles/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/staticfiles/__pycache__/views.cpython-310.pyc
o

�a��@sRdZddlZddlZddlmZddlmZddlmZddl	m
Z
d
dd	�ZdS)z�
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.

�N)�settings)�finders)�Http404)�staticFcKsztjs|st�t�|��d�}t�|�}|s)|�d�s|dkr#td��td|��t	j
�|�\}}tj
||fd|i|��S)as
    Serve static files below a given point in the directory structure or
    from locations inferred from the staticfiles finders.

    To use, put a URL pattern such as::

        from django.contrib.staticfiles import views

        path('<path:path>', views.serve)

    in your URLconf.

    It uses the django.views.static.serve() view to serve the found files.
    �/�z'Directory indexes are not allowed here.z'%s' could not be found�
document_root)r�DEBUGr�	posixpath�normpath�lstripr�find�endswith�os�path�splitr�serve)�requestr�insecure�kwargs�normalized_path�
absolute_pathr�r�B/usr/lib/python3/dist-packages/django/contrib/staticfiles/views.pyrs

r)F)�__doc__rr
�django.confr�django.contrib.staticfilesr�django.httpr�django.viewsrrrrrr�<module>s

https://t.me/RX1948 - 2025