o
    ó<âgŒ  ã                   @   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   úJ/var/www/html/venv/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    