
    k"g                     R    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
 e
fdZy)    N)urlsplit)settings)ImproperlyConfigured)re_path)servec                     | st        d      t        j                  rt        |       j                  rg S t        dt        j                  | j                  d            z  ||      gS )a$  
    Return a URL pattern for serving files in debug mode.

    from django.conf import settings
    from django.conf.urls.static import static

    urlpatterns = [
        # ... the rest of your URLconf goes here ...
    ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    z!Empty static prefix not permittedz^%s(?P<path>.*)$/)kwargs)	r   r   DEBUGr   netlocr   reescapelstrip)prefixviewr
   s      P/var/www/html/djangosite/lib/python3.12/site-packages/django/conf/urls/static.pystaticr   
   s\     "#FGG^^x/66	"))FMM#,>"??f	
     )r   urllib.parser   django.confr   django.core.exceptionsr   django.urlsr   django.views.staticr   r    r   r   <module>r      s!    	 !   7  %  r   