/usr/local/lib/python3.9/site-packages/django/contrib/staticfiles/__pycache__
a Ӱ�h� � @ sR d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl 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)�staticFc K sz t js|st�t�|��d�}t�|�}|sR|�d�s>|dkrFtd��td| ��t j �|�\}}tj | |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 Zinsecure�kwargsZnormalized_pathZ absolute_pathr � r �J/usr/local/lib/python3.9/site-packages/django/contrib/staticfiles/views.pyr s r )F)�__doc__r r Zdjango.confr Zdjango.contrib.staticfilesr Zdjango.httpr Zdjango.viewsr r r r r r �<module> s
.
Edit
..
Edit
__init__.cpython-39.pyc
Edit
apps.cpython-39.pyc
Edit
checks.cpython-39.pyc
Edit
finders.cpython-39.pyc
Edit
handlers.cpython-39.pyc
Edit
storage.cpython-39.pyc
Edit
testing.cpython-39.pyc
Edit
urls.cpython-39.pyc
Edit
utils.cpython-39.pyc
Edit
views.cpython-39.pyc
Edit