+
    Tjb>                         ^ RI t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHt ^ R	IHt  ! R
 R]4      tR# )    N)apps)get_finders)staticfiles_storage)Tags)FileSystemStorage)BaseCommandCommandError)no_style)cached_propertyc                      a a ] tR t^t oRtRt]P                  .tV 3R lt	]
R 4       tR tR tR tR tRR	 ltR
 tR tR tR tR tRtVtV ;t# )CommandzW
Copies or symlinks static files from different locations to the
settings.STATIC_ROOT.
z*Collect static files in a single location.c                   < \         SV `  ! V/ VB  . V n        . V n        . V n        . V n        . V n        . V n        \        V n	        \        4       V n        R # N)super__init__copied_filessymlinked_filesunmodified_filespost_processed_filesskipped_filesdeleted_filesr   storager
   style)selfargskwargs	__class__s   &*,q/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/staticfiles/management/commands/collectstatic.pyr   Command.__init__   sU    $)&)! "$&!*Z
    c                b     V P                   P                  R 4       R#   \         d     R# i ; i) FT)r   pathNotImplementedErrorr   s   &r   localCommand.local!   s2    	LLb!  # 		s    ..c           
     4   VP                  R RRRRR7       VP                  RRRRR7       VP                  R	R
R. RRRR7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRRRR7       R# )z	--noinputz
--no-inputstore_falseinteractivez-Do NOT prompt the user for input of any kind.)actiondesthelpz--no-post-processpost_processz$Do NOT post process collected files.z-iz--ignoreappendignore_patternsPATTERNz`Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.)r+   defaultr,   metavarr-   z-nz	--dry-run
store_truez+Do everything except modify the filesystem.)r+   r-   z-cz--clearz[Clear the existing files using the storage before trying to copy or link the original file.z-lz--linkz7Create a symbolic link to each file instead of copying.z--no-default-ignoreuse_default_ignore_patternszWDon't ignore the common private glob-style patterns (defaults to 'CVS', '.*' and '*~').N)add_argument)r   parsers   &&r   add_argumentsCommand.add_arguments)   s     @ 	 	
 	 7	 	 	
 	": 	 		
 	>	 	 	
 	?	 	 	
 	J	 	 	
 	! .) 	 	
r    c                   VR,          V n         VR,          V n        VR,          V n        VR,          V n        VR,          V n        VR,          pVR,          '       d(   V\
        P                  ! R4      P                  ,          p\        V Uu0 uF"  p\        P                  P                  V4      kK$  	  up4      V n        VR	,          V n        R
# u upi )z1
Set instance variables based on an options dict
r*   	verbositylinkcleardry_runr0   r5   staticfilesr.   N)r*   r;   symlinkr=   r>   r   get_app_configr0   listosr#   normpathr.   )r   optionsr0   ps   &,  r   set_optionsCommand.set_options^   s     #=1 -vW%
y)!"34011t22=AQQQO#/$R/QRWW%5%5a%8/$RS#N3 %Ss   (Cc           
     8   V P                   '       d   V P                  '       g   \        R4      hV P                  '       d   V P	                  R4       V P                   '       d   V P
                  pMV P                  p/ p\        4        F  pVP                  V P                  4       F  w  rE\        VRR4      '       d,   \        P                  P                  VP                  V4      pMTpWb9  d   WT3W&&   V! WFV4       K[  V P                  P!                  V4       V P#                  RV,          ^R7       K  	  K  	  V P$                  '       d   \'        V P(                  R4      '       d   V P(                  P%                  W P*                  R7      pV F  w  rp
\-        V
\.        4      '       d?   V P0                  P3                  R	V,          4       V P0                  P3                  4        V
hV
'       d:   V P#                  R
V: RV	: R2^R7       V P4                  P!                  V4       K  V P#                  RV,          4       K  	  RV P6                  V P8                  ,           RV P:                  RV P4                  RV P                  RV P<                  /# )z`
Perform the bulk of the work of collectstatic.

Split off from handle() to facilitate testing.
z&Can't symlink to a remote destination.r"   prefixNzFound another file with the destination path '%s'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.levelr.   )r>   zPost-processing '%s' failed!zPost-processed 'z' as ''zSkipped post-processing '%s'modified
unmodifiedpost_processedskippeddeleted)r@   r&   r	   r=   	clear_dir	link_file	copy_filer   rB   r0   getattrrC   r#   joinrJ   r   r/   logr.   hasattrr   r>   
isinstance	Exceptionstderrwriter   r   r   r   r   )r   handlerfound_filesfinderr#   r   prefixed_path	processororiginal_pathprocessed_path	processeds   &          r   collectCommand.collectm   s    <<<


GHH:::NN2<<<nnGnnG!mF!'T-A-A!B7Hd33$&GGLL$FM$(M 329K.D9&&--m<HH? BOO     "C $, ~!F!F11+||1TI<E8yi33KK%%&D}&TU KK%%'#OHH9FW   --44]CHH;mKL =F" ))D,@,@@$//d77t))t))
 	
r    c                   V P                   ! R!/ VB  R .pV P                  '       d   VP                  R4       VP                  R4       V P                  4       '       d   V P                  P
                  '       dw   V P                  P
                  pVP                  RV,          4       V P                  P                  V4      ;'       d%    \        V P                  P                  V4      4      pMRpVP                  R4       RpV P                  '       dy   V'       dq   V P                  '       d   VP                  R4       MVP                  R4       VP                  R	4       \        R
P                  V4      4      R8w  d   \        R4      hV P                  4       pV P                  ^8  Ed   \!        VR,          4      p\!        VR,          4      p\!        VR,          4      p\!        VR,          4      p	\!        VR,          4      p
RRV^ 8  d   V: RV^8X  d   R
MR: R2MR
RTRRV^8X  d   R
MR,           RV P"                  '       d   RMRRV'       d
   RV,          MR
RVR,          '       d
   RV,          MR
RVR,          ;'       d    RV	,          ;'       g    R
RVR,          '       d   R V
,          /,          # R
/,          # R# )"
zGYou have activated the --dry-run option so no files will be modified.

zdYou have requested to collect static files at the destination
location as specified in your settingsz:

    %s

Nz.

Tz-This will DELETE ALL FILES in this location!
z$This will overwrite existing files!
zNAre you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: r"   yesz"Collecting static files cancelled.rR   rN   rO   rP   rQ   zs
%(deleted)s%(modified_count)s %(identifier)s %(action)s%(destination)s%(unmodified)s%(post_processed)s%(skipped)s.z static filesz
 deleted, modified_count
identifierzstatic filer+   	symlinkedcopieddestinationz to '%s'z, %s unmodifiedz, %s post-processedz, %s skipped due to conflict )rG   r>   r/   is_local_storager   locationexistsanylistdirr*   r=   inputrW   r	   rf   r;   lenr@   )r   rE   messagedestination_pathshould_warn_user	collecteddeleted_countrl   unmodified_countpost_processed_countskipped_counts   &,         r   handleCommand.handle   s   #7#&<<<NN 
 	5	

   ""t||'<'<'<#||44NN,/??@#||223CD    $$%56J  $NN7## 0zzzOPFGNN> RWWW%&%/"#GHHLLN	>>Q	) 45M :!67N"9\#:;#&y1A'B#C 	) 45MN  %q( %MQ,>bC&GI  .m^q5HrcR+85EJ!112 .. &(88 ./ E E-0DD  ++ 3]B1 : 5  r    c                b    V P                   V8  d   V P                  P                  V4       R# R# )z
Small log helper
N)r;   stdoutr]   )r   msgrL   s   &&&r   rX   Command.log   s'     >>U"KKc" #r    c                6    \        V P                  \        4      # r   )rZ   r   r   r%   s   &r   rr   Command.is_local_storage  s    $,,(9::r    c                   V P                   P                  V4      '       g   R# V P                   P                  V4      w  r#V EF;  p\        P                  P                  W4      pV P                  '       d8   V P                  RV,          ^R7       V P                  P                  V4       Kl  V P                  RV,          ^R7       V P                  P                  V4        V P                   P	                  V4      p\        P                  P                  V4      '       g?   \        P                  P                  V4      '       d   \        P                  ! V4       EK   V P                   P                  V4       EK>  	  V F1  pV P                  \        P                  P                  W4      4       K3  	  R#   \         d!    T P                   P                  T4        EK  i ; i)zG
Delete the given relative path using the destination storage backend.
NPretending to delete '%s'rK   Deleting '%s')r   rt   rv   rC   r#   rW   r>   rX   r   r/   lexistsunlinkdeleter$   rS   )r   r#   dirsfilesffpath	full_pathds   &&      r   rS   Command.clear_dir	  sS    ||""4((ll**40AGGLL)E|||4u<AF""))%050:""))%0	3 $ 1 1% 8I 77>>)449S9S		),++E2# $ ANN277<<01  + /LL''../s   %F<<&G'&G'c                ~   V P                   P                  V4      '       Edm    V P                   P                  V4      p VP                  V4      pV P                  '       dR   V P                   P	                  V4      pV P
                  \        P                  P                  V4      ,          '       * pMRpVP                  ^ R7      VP                  ^ R7      8  pV'       dN   V'       dF   W P                  9  d   V P                  P                  V4       V P                  RV,          4       R# T P                  '       d   T P                  RT,          4       R# T P                  RT,          4       T P                   P                  T4       R#   \        \        3 d     Lti ; i  \        \        3 d     Li ; i)zB
Check if the target file should be deleted if it already exists.
T)microsecondzSkipping '%s' (not modified)Fr   r   )r   rt   get_modified_timer&   r#   r@   rC   islinkreplacer   r/   rX   OSErrorr$   r>   r   )	r   r#   ra   source_storagetarget_last_modifiedsource_last_modifiedr   can_skip_unmodified_filesfile_is_unmodifieds	   &&&&     r   delete_fileCommand.delete_file&  s}    <<}--%%'+||'E'Em'T$
%+9+K+KD+Q(
 zzz$(LL$5$5m$D	 !LL277>>)+DD51 591)=)E)E$% *F *-55!5D*E& *.G(0E0EE 1188G!?$!FG$|||4t;<  4/0##M2E  !45  01 s#   F(  F F%$F%(F<;F<c                p   W P                   9   d   V P                  RV,          4      # V P                  WV4      '       g   R# VP                  V4      pV P                  '       d   V P                  RV,          ^R7       MV P                  RV,          ^R7       V P
                  P                  V4      p\        P                  ! \        P                  P                  V4      RR7        \        P                  P                  V4      '       d   \        P                  ! V4       \        P                  ! WE4       W P                   9  d   V P                   P!                  V4       R# R#   \         d&    ^ RIp\        RTP                  4       ,          4      h\         d   p\        T4      hRp?ii ; i)	z
Attempt to link ``path``
z&Skipping '%s' (already linked earlier)NzPretending to link '%s'rK   zLinking '%s'T)exist_okz2Symlinking is not supported in this platform (%s).)r   rX   r   r#   r>   r   rC   makedirsdirnamer   r   r@   r$   platformr	   r   r/   )r   r#   ra   r   source_pathr   r   es   &&&&    r   rT   Command.link_fileY  sQ   
 00088DtKLL^DD$))$/<<<HH.<AHFHH^k1H;))-8IKK	2TB&77??9--IIi(

;2  4 44  ''6 5 ' "%'/'8'8':;   &"1o%&s$   ,$E, ,E, ,7F5$F5%F00F5c                   W P                   9   d   V P                  RV,          4      # V P                  WV4      '       g   R# VP                  V4      pV P                  '       d   V P                  RV,          ^R7       MWV P                  RV,          ^R7       VP                  V4      ;_uu_ 4       pV P                  P                  W%4       RRR4       V P                   P                  V4       R#   + '       g   i     L-; i)z'
Attempt to copy ``path`` with storage
z&Skipping '%s' (already copied earlier)NzPretending to copy '%s'rK   zCopying '%s')	r   rX   r   r#   r>   openr   saver/   )r   r#   ra   r   r   source_files   &&&&  r   rU   Command.copy_file|  s    
 ---88DtKLL^DD$))$/<<<HH.<AHFHH^k1H;$$T**k!!-= +  / +*s   4C55D	)r=   r   r   r>   r0   r*   r.   r   r   r   r   r@   r   r   r;   )   )__name__
__module____qualname____firstlineno____doc__r-   r   r?   requires_system_checksr   r   r&   r8   rG   rf   r   rX   rr   rS   r   rT   rU   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      sw     
 8D"../	   3
j4@
DN`#;2:1f!7F0 0r    r   )rC   django.appsr   "django.contrib.staticfiles.findersr   "django.contrib.staticfiles.storager   django.core.checksr   django.core.files.storager   django.core.management.baser   r	   django.core.management.colorr
   django.utils.functionalr   r   rq   r    r   <module>r      s.    	  : B # 7 A 1 3B0k B0r    