o
    Mfv                     @   sT   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dZdS )	    N)urlsplit)settings)ImproperlyConfigured)re_path)servec                 K   s@   | st dtjrt| jrg S tdt| d ||d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    r   Y/var/www/html/analyze/labelStudio/lib/python3.10/site-packages/django/conf/urls/static.pystatic
   s   r   )r   urllib.parser   django.confr   django.core.exceptionsr   django.urlsr   django.views.staticr   r   r   r   r   r   <module>   s    