|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/contrib/staticfiles/ |
Upload File : |
�
r�\c @ s� 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 l m Z d d l
m Z e d � Z d S(
s�
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
i����N( t settings( t ImproperlyConfigured( t Http404( t unquote( t static( t findersc K s� t j r | r t d � � n t j t | � � j d � } t j | � } | s� | j d � sn | d k r} t
d � � n t
d | � � n t j j
| � \ } } t j | | d | | �S( sR
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::
(r'^(?P<path>.*)$', 'django.contrib.staticfiles.views.serve')
in your URLconf.
It uses the django.views.static view to serve the found files.
sf The staticfiles view can only be used in debug mode or if the --insecure option of 'runserver' is usedt /t s'