o
    {Ð,hî  ã                   @   sR   d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 d
dd	„ZdS )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 js|st‚t |¡ d¡}t |¡}|s)| d¡s|dkr#tdƒ‚td| ƒ‚t	j
 |¡\}}tj| |fd|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   úV/var/www/html/rh/venv/lib/python3.10/site-packages/django/contrib/staticfiles/views.pyr      s   

r   )F)Ú__doc__r   r
   Údjango.confr   Údjango.contrib.staticfilesr   Údjango.httpr   Údjango.viewsr   r   r   r   r   r   Ú<module>   s    