B
    ©0H[ð  ã               @   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 |¡}|sR| d¡s>|dkrFtdƒ‚td| ƒ‚t	j
 |¡\}}tj| |fd|i|—ŽS )av  
    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

        url(r'^(?P<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   ZinsecureÚkwargsZnormalized_pathZabsolute_pathr   © r   údC:\Users\HIRONO~1\AppData\Local\Temp\pip-install-6bm3nxem\django\django\contrib\staticfiles\views.pyr      s    

r   )F)Ú__doc__r   r
   Zdjango.confr   Zdjango.contrib.staticfilesr   Zdjango.httpr   Zdjango.viewsr   r   r   r   r   r   Ú<module>   s   