
    h]                     >    S SK Jr  S SKJr  S SKJr   " S S\5      rg)    )settings)StaticFilesHandler)Commandc                   8   ^  \ rS rSrSrU 4S jrU 4S jrSrU =r$ )r      zMStarts a lightweight web server for development and also serves static files.c                 l   > [         TU ]  U5        UR                  SSSSS9  UR                  SSSS	S9  g )
Nz
--nostaticstore_falseuse_static_handlerzCTells Django to NOT automatically serve static files at STATIC_URL.)actiondesthelpz
--insecure
store_trueinsecure_servingz3Allows serving static files even if DEBUG is False.)superadd_argumentsadd_argument)selfparser	__class__s     j/var/www/html/env/lib/python3.13/site-packages/django/contrib/staticfiles/management/commands/runserver.pyr   Command.add_arguments   sP    f% %V	 	 	
 	#F	 	 	
    c                    > [         TU ]  " U0 UD6nUS   nUS   nU(       a'  [        R                  (       d  U(       a  [	        U5      $ U$ )z
Return the static files serving handler wrapping the default handler,
if static files should be served. Otherwise return the default handler.
r
   r   )r   get_handlerr   DEBUGr   )r   argsoptionshandlerr
   r   r   s         r   r   Command.get_handler   sM    
 '%t7w7$%9:"#568>>5E%g..r    )	__name__
__module____qualname____firstlineno__r   r   r   __static_attributes____classcell__)r   s   @r   r   r      s    W 	

 
r   r   N)django.confr   #django.contrib.staticfiles.handlersr   )django.core.management.commands.runserverr   RunserverCommandr    r   r   <module>r+      s      B Q r   