Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/django/views/__pycache__/static.cpython-312.pyc

48 lines
5.4 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
j<> i<><00><00><><00>dZddlZddlZddlmZddlmZmZmZm Z ddl
m Z m Z m Z mZddlmZddlmZmZddlmZdd lmZd
<EFBFBD>Zdd <0B>Zed <0C>Zd <0A>Zdd<0E>Zy)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.
<EFBFBD>N)<01>Path)<04> FileResponse<73>Http404<30> HttpResponse<73>HttpResponseNotModified)<04>Context<78>Engine<6E>TemplateDoesNotExist<73>loader)<01> safe_join)<02> http_date<74>parse_http_date)<01>gettext)<01> gettext_lazyc<00>@<00>tt<00>jdz |z S)z<>
Return a path to a builtin template.
Avoid calling this function at the module level or in a class-definition
because __file__ may not exist, e.g. in frozen environments.
<20> templates)r<00>__file__<5F>parent)<01>names <20>BE:\Project\pygoedge\.venv\Lib\site-packages\django/views/static.py<70>builtin_template_pathrs<00><00> <10><08>><3E> <20> <20>;<3B> .<2E><14> 5<>5<>c<00><><00>tj|<01>jd<01>}tt ||<01><00>}|j <00>r"|r t ||<04>Sttd<02><00><00>|j<00>sttd<03>d|iz<00><00>|j<00>}t|jjd<05>|j<00>s
t<00>St!j"t%|<04><00>\}}|xsd}t'|j)d<07>|<06><08>}t+|j<00>|j,d <|r||j,d
<|S) aF
Serve static files below a given point in the directory structure.
To use, put a URL pattern such as::
from django.views.static import serve
path('<path:path>', serve, {'document_root': '/path/to/my/files/'})
in your URLconf. You must provide the ``document_root`` param. You may
also set ``show_indexes`` to ``True`` if you'd like to serve a basic index
of the directory. This index view will use the template hardcoded below,
but if you'd like to override it, you can create a template called
``static/directory_index.html``.
<20>/z'Directory indexes are not allowed here.u“%(path)s” does not exist<73>path<74>HTTP_IF_MODIFIED_SINCEzapplication/octet-stream<61>rb)<01> content_typez Last-ModifiedzContent-Encoding)<17> posixpath<74>normpath<74>lstriprr <00>is_dir<69>directory_indexr<00>_<>exists<74>stat<61>was_modified_since<63>META<54>get<65>st_mtimer<00> mimetypes<65>
guess_type<EFBFBD>strr<00>openr <00>headers) <09>requestr<00> document_root<6F> show_indexes<65>fullpath<74>statobjr<00>encoding<6E>responses r<00>server7s&<00><00> <15> <1D> <1D>d<EFBFBD> #<23> *<2A> *<2A>3<EFBFBD> /<2F>D<EFBFBD><13>I<EFBFBD>m<EFBFBD>T<EFBFBD>2<>3<>H<EFBFBD><0F><EFBFBD><EFBFBD><18> <17>"<22>4<EFBFBD><18>2<> 2<><15>a<EFBFBD>A<>B<>C<>C<> <13>?<3F>?<3F> <1C><15>a<EFBFBD>7<>8<>F<EFBFBD>H<EFBFBD>;M<>M<>N<>N<><16>m<EFBFBD>m<EFBFBD>o<EFBFBD>G<EFBFBD> <1D><0F> <0C> <0C><18><18>1<>2<>G<EFBFBD>4D<34>4D<34> <06>'<27>(<28>(<28>&<26>1<>1<>#<23>h<EFBFBD>-<2D>@<40><1A>L<EFBFBD>(<28><1F>=<3D>#=<3D>L<EFBFBD><1B>H<EFBFBD>M<EFBFBD>M<EFBFBD>$<24>/<2F>l<EFBFBD>K<>H<EFBFBD>(1<>'<27>2B<32>2B<32>(C<>H<EFBFBD><14><14>_<EFBFBD>%<25><0F>/7<><08><18><18>+<2B>,<2C> <13>OrzIndex of %(directory)sc<00>j<00> tjddg<02>}i}g}|j<00>D]^}|jjd <09>r<01>t|j|<01><00>}|j<00>r|d
z }|j|<07><00>`|j!|d
z|d <0B><02>t#j%|<03><00>S#t$rjtd<03>j d<04><05>5}t ddi<01><08>j |j<00><00>}ddd<00>n #1swYnxYwt<00>}Y<00><01>wxYw) Nzstatic/directory_index.htmlzstatic/directory_indexzdirectory_index.htmlzutf-8)r5<00>i18nzdjango.templatetags.i18n)<01> libraries<65>.r)<02> directory<72> file_list)r <00>select_templater
rr.r <00> from_string<6E>readr<00>iterdirr<00>
startswithr-<00> relative_tor"<00>append<6E>updater<00>render)rr3<00>t<>c<>fh<66>files<65>f<>urls rr#r#Gs<00><00><0F> <12> "<22> "<22>-<2D>(<28> <0E>
<EFBFBD><01> <0F><01> <0E>E<EFBFBD> <15> <1D> <1D> <1F><01><10>v<EFBFBD>v<EFBFBD> <20> <20><13>%<25><15>a<EFBFBD>m<EFBFBD>m<EFBFBD>H<EFBFBD>-<2D>.<2E>C<EFBFBD><10>x<EFBFBD>x<EFBFBD>z<EFBFBD><13>s<EFBFBD>
<EFBFBD><03> <11>L<EFBFBD>L<EFBFBD><13> <1D>  <20> <06>H<EFBFBD>H<EFBFBD><1D><03><1A><1E>
<EFBFBD><06> <18><01><08><08><11> <0B> $<24>$<24><>+ <20><16> "<22>#9<> :<3A> ?<3F> ?<3F><17> ?<3F> Q<>UW<55><16>&<26>*D<>!E<>F<>R<>R<><12><07><07> <09><0E>A<EFBFBD>R<01> Q<> Q<><51> <14>I<EFBFBD><01> <16>s)<00>B?<00>?$D2<03>#,D<05> D2<03>D! <09>D2<03>1D2c<00><><00> |<00>t<00>t|<00>}t|<01>|kDrt<00> y#ttf$rYywxYw)a
Was something modified since the user last downloaded it?
header
This is the value of the If-Modified-Since header. If this is None,
I'll just return True.
mtime
This is the modification time of the item we're talking about.
TF)<04>
ValueErrorr<00>int<6E> OverflowError)<03>header<65>mtime<6D> header_mtimes rr'r'gsQ<00><00><14> <11>><3E><1C> <1C>&<26>v<EFBFBD>.<2E> <0C> <0E>u<EFBFBD>:<3A> <0C> $<24><1C> <1C> %<25> <11><> <17> <0A> &<26><14><13><14>s <00>'+<00>=<03>=)NF)Nr)<1D>__doc__r+r<00>pathlibr<00> django.httprrrr<00>django.templaterr r
r <00>django.utils._osr <00>django.utils.httpr r<00>django.utils.translationrr$rrr7<00>template_translatabler#r'<00>rr<00><module>r]sQ<00><01><04>
<11><10><18>T<>T<>I<>I<>&<26>8<>1<>1<>6<>$<14>P%<25>%=<3D>><3E><15>%<25>@r