
    h                     \    d dl mZ d dlmZ d dlmZ d Ze G d de             Z e       Zy)    )FileSystemStorage)deconstructible)settingsc                  `    ddl m}  ddlm}m} 	 |t
        j                     S # | $ r |cY S w xY w)Nr   )InvalidStorageError)storagesdefault_storage)!django.core.files.storage.handlerr   django.core.files.storager   r	   r   THUMBNAIL_DEFAULT_STORAGE_ALIAS)r   r   r	   s      G/home/dcms/DCMS/lib/python3.12/site-packages/easy_thumbnails/storage.pyget_storager      s3    EC@@AA s   # --c                   $     e Zd ZdZd fd	Z xZS )ThumbnailFileSystemStoragez
    Standard file system storage.

    The default ``location`` and ``base_url`` are set to
    ``THUMBNAIL_MEDIA_ROOT`` and ``THUMBNAIL_MEDIA_URL``, falling back to the
    standard ``MEDIA_ROOT`` and ``MEDIA_URL`` if the custom settings are blank.
    c                     |t         j                  xs d }|t         j                  xs d }t        |   ||g|i | y )N)r   THUMBNAIL_MEDIA_ROOTTHUMBNAIL_MEDIA_URLsuper__init__)selflocationbase_urlargskwargs	__class__s        r   r   z#ThumbnailFileSystemStorage.__init__   sH    44<H33;tH8=d=f=    )NN)__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r   r      s    > >r   r   N)	r   r   django.utils.deconstructr   easy_thumbnails.confr   r   r   thumbnail_default_storage r   r   <module>r&      s9    7 4 ) >!2 > >  (M r   