| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/staticfiles/__pycache__/ |
Upload File : |
�
�|�e� � �R � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
d d�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)�staticFc � � t j s |st �t j |� � � d� � }t
j |� � }|s<|� d� � s|dk rt d� � �t d|z � � �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
s �B/usr/lib/python3/dist-packages/django/contrib/staticfiles/views.pyr r s� � � �>� �(� ��
��(��.�.�5�5�c�:�:�O��L��1�1�M�� 8��=�=���� E������C�D�D�D��/�$�6�7�7�7��'�-�-�
�6�6��M�4��<���M�M�]�M�f�M�M�M� )F)�__doc__r r �django.confr �django.contrib.staticfilesr �django.httpr �django.viewsr r � r r �<module>r"