
    ho                     V   d dl Z d dlmZmZ d dlmZmZ d dlmZ d dl	m
Z
m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mZmZmZmZmZ d dlmZ d dlmZ d dlm Z  ddZ!d Z"ddZ# G d d      Z$ G d d      Z% G d de
      Z& G d de      Z' G d dee'      Z( G d de
e(      Z)y)    N)FileContentFile)default_storageStorage)get_image_dimensions)ImageFieldFile	FieldFile)timezone)	mark_safe)escape)import_string)engine
exceptionsmodelsutilssignalsstorage)aliases)settings)ThumbnailOptionsc                    t        | d      r| j                  S t        | t              r| S t        | t              r/|s| j
                  }t        | j                  | j                  |      S d}t        | t              r| }d} |st        d      t        | t              r| j                  } t        | t              s	| t        k(  r| }d} t        | ||| du      S )a  
    Get a :class:`Thumbnailer` for a source file.

    The ``obj`` argument is usually either one of the following:

        * ``FieldFile`` instance (i.e. a model instance file/image field
          property).

        * A string, which will be used as the relative name (the source will be
          set to the default storage).

        * ``Storage`` instance - the ``relative_name`` argument must also be
          provided.

    Or it could be:

        * A file-like instance - the ``relative_name`` argument must also be
          provided.

          In this case, the thumbnailer won't use or create a cached reference
          to the thumbnail (i.e. a new thumbnail will be created for every
          :meth:`Thumbnailer.get_thumbnail` call).

    If ``obj`` is a ``Thumbnailer`` instance, it will just be returned. If it's
    an object with an ``easy_thumbnails_thumbnailer`` then the attribute is
    simply returned under the assumption it is a Thumbnailer instance)
    easy_thumbnails_thumbnailerNzXIf object is not a FieldFile or Thumbnailer instance, the relative name must be provided)filenamesource_storageremote_source)hasattrr   
isinstanceThumbnailerr	   r   ThumbnailerFieldFileinstancefieldstr
ValueErrorr   r   r   r   )objrelative_namer   s      E/home/dcms/DCMS/lib/python3.12/site-packages/easy_thumbnails/files.pyget_thumbnailerr(      s    8 s12...#{#
	C	#HHM#CLL#))]KKN#s-. 	. #thh#w3/#9}^o' '    c                     t        j                  | |      }|r:t        |       }|j                         D ]  \  }}||d<   |j	                  |        yy)a  
    Generate all of a file's aliases.

    :param fieldfile: A ``FieldFile`` instance.
    :param include_global: A boolean which determines whether to generate
        thumbnails for project-wide aliases in addition to field, model, and
        app specific aliases.
    )include_globalALIASN)r   allr(   itemsget_thumbnail)	fieldfiler+   all_optionsthumbnailerkeyoptionss         r'   generate_all_aliasesr5   N   sZ     ++iGK%i0'--/ 	/LC"GG%%g.	/ r)   c                    t        j                  | j                        }d}d}	 t        j                  j
                  j                  d      j                  || j                        }	 |j                  }|r|j                  |j                  fS t        j                  j!                  | j"                  j                        d   dk(  r#ddlm}  || j                        j(                  }nt+        | |      }t,        j.                  r6|r4t        j                  j
                  j1                  ||d   |d   d	
       |S # t        j                  j                  $ r d}Y w xY w# t        j                  j                  $ r d}Y w xY w)a  
    Returns the (width, height) of an image, given ThumbnailFile.  Set
    'close' to True to close the file at the end if it is initially in an open
    state.

    Will attempt to get the dimensions from the file itself if they aren't
    in the db.
    N
dimensions)storage_hashr      z.svgr   )loadclosewidthheight	thumbnaildefaults)r   get_storage_hashr   r   	Thumbnailobjectsselect_relatedgetr   r7   ThumbnailDimensionsDoesNotExistr>   r?   ospathsplitextr   easy_thumbnails.VIL.Imager:   sizer   r   THUMBNAIL_CACHE_DIMENSIONSget_or_create)r   r<   r7   r8   dimensions_cacherA   r:   s          r'   database_get_image_dimensionsrR   _   s_    ))$,,7LJC$$,,;;LIMM%DII N 7	
	$(33 #))+;+B+BBB	ww		'*f42$))_))
)$e<
**y 	""**88)!}
1F 	9 	H  ))66 	$#	$ (( 	s$   AE& *E E#"E#&FFc                       e Zd ZdZddZd Zy)	FakeFieldfakeNc                 "    |t         }|| _        y N)r   r   )selfr   s     r'   __init__zFakeField.__init__   s    ?%Gr)   c                     |S rW    )rX   r!   r   argskwargss        r'   generate_filenamezFakeField.generate_filename   s    r)   rW   )__name__
__module____qualname__r   rY   r^   r[   r)   r'   rT   rT      s    D
r)   rT   c                       e Zd Zd Zy)FakeInstancec                      y rW   r[   rX   r\   r]   s      r'   savezFakeInstance.save   s    r)   N)r_   r`   ra   rf   r[   r)   r'   rc   rc      s    r)   rc   c                        e Zd ZdZd fd	Zd Zd Zde_        de_        d Zd Z	 e
ee	      ZddZd	 Zd
 Zd Z e
eee      Zd fd	Zd Zd Z xZS )ThumbnailFilez
    A thumbnailed file.

    This can be used just like a Django model instance's property for a file
    field (i.e. an ``ImageFieldFile`` object).
    c                     t        |      }t        |   t               ||g|i | | `|r|| _        |t               }|| _        y t        |t              st        |      }|| _        y )N)r   )	rT   superrY   rc   r"   r   r   r   thumbnail_options)	rX   r   r   r   rk   r\   r]   
fake_field	__class__s	           r'   rY   zThumbnailFile.__init__   st    w/
TKDKFKJDI$ 0 2 "3 -/?@ 01B C!2r)   c                     t               rW   NotImplementedErrorre   s      r'   rf   zThumbnailFile.save   s    !##r)   c                     t               rW   ro   re   s      r'   deletezThumbnailFile.delete   s     "##r)   Tc                 X    t        | d      sddlm}  ||       | _        | j                  S )z
        Get a PIL Image instance of this file.

        The image is cached to avoid the file needing to be read again if the
        function is called again.
        _image_cacher   )	pil_image)r   !easy_thumbnails.source_generatorsru   imagert   )rX   ru   s     r'   
_get_imagezThumbnailFile._get_image   s(     t^,C"4DJ   r)   c                 t    |r|| _         |j                  | _        yt        | d      r| `t        | d      r| `yy)ze
        Set the image for this file.

        This also caches the dimensions of the image.
        rt   _dimensions_cacheN)rt   rN   rz   r   _cached_image)rX   rw   s     r'   
_set_imagezThumbnailFile._set_image   sA      %D%*ZZD"t^,&t01* 2r)   c                    |8t        | dd      rd}n(	 | j                  j                  | j                         d}||d<   | j
                  |d<   |r0|j                  t        | j                  | j                               dj                  t        |j                               D cg c]  \  }}|d	t        |      d
 c}}      }t        d|z        S # t        $ r d}Y w xY wc c}}w )a  
        Return a standard XHTML ``<img ... />`` tag for this field.

        :param alt: The ``alt=""`` text for the tag. Defaults to ``''``.

        :param use_size: Whether to get the size of the thumbnail image for use
            in the tag attributes. If ``None`` (default), the size will only
            be used it if won't result in a remote file retrieval.

        All other keyword parameters are added as (properly escaped) extra
        attributes to the `img` tag.
        Nrz   TFaltsrcr=    z=""z
<img %s />)getattrr   rK   r   rp   urlupdatedictr>   r?   joinsortedr.   r   r   )rX   r~   use_sizeattrsr3   values         r'   tagzThumbnailFile.tag   s     t0$7%LL%%dii0#H exxeLLDJJt{{CD,25;;=,AC(c5 (+F5M: C D-.. + %$H%Cs   'C (C*
C'&C'c                     | j                          t        | d      r| j                  +| j                  j	                  | j
                  d      | _        | j                  S )N_filerb)_require_filer   r   r   openr   rX   s    r'   	_get_filezThumbnailFile._get_file   sG    tW%);**499d;DJzzr)   c                 Z    |t        |t              st        |      }|| _        d| _        y )NF)r   r   r   
_committed)rX   r   s     r'   	_set_filezThumbnailFile._set_file   s(    Zt%<KE
r)   c                     | ` y rW   )r   r   s    r'   	_del_filezThumbnailFile._del_file  s    Jr)   c                     | j                   rM| j                  rA|xs t        | dd       xs d}| j                  j	                  | j                  |      | _        y t        |   |g|i |S )Nmoder   )closedr   r   r   r   r   rj   )rX   r   r\   r]   rm   s       r'   r   zThumbnailFile.open  s]    ;;499>746>$D))$))T:DI7<6t6v66r)   c                     t        | d      s.| j                  }| j                          t        | |      | _        | j                  S )Nrz   r;   )r   r   r   rR   rz   )rX   r<   s     r'   _get_image_dimensionsz#ThumbnailFile._get_image_dimensions  s=    t01KKEIIK%BE&#D"%%%r)   c                     	 t        |dd      }|sy|j                  | _        | j
                  S # t        j                  j                  $ r d}Y Aw xY w)zl
        Set image dimensions from the cached dimensions of a ``Thumbnail``
        model instance.
        r7   NF)r   r   rH   rI   rN   rz   )rX   rA   r7   s      r'   set_image_dimensionsz"ThumbnailFile.set_image_dimensions  sW    
	 L$?J !+%%% ))66 	J	s   / AA)NNN) NrW   )r_   r`   ra   __doc__rY   rf   rr   alters_datarx   r|   propertyrw   r   r   r   r   r   r   r   r   __classcell__rm   s   @r'   rh   rh      st    3$$ DF
!+ Z,E/<  Iy)4D7&&r)   rh   c                        e Zd ZdZdZdZ	 	 d fd	Zd Zd ZddZ	ddZ
d	 Z	 	 dd
Zd Zd ZddZddZddZde_         xZS )r   a  
    A file-like object which provides some methods to generate thumbnail
    images.

    You can subclass this object and override the following properties to
    change the defaults (pulled from the default settings):

        * source_generators
        * thumbnail_processors
    NTc                 2   t        |   ||g|i | |t        }|| _        |t        j
                  }|| _        || _        d | _        || _	        dD ]@  }	d|	z  }
t        | |
d       t        t        |
j                               }t        | |
|       B y )N)	basedirsubdirprefixquality	extensionpreserve_extensionstransparency_extensioncheck_cache_missnamerzthumbnail_%s)rj   rY   r   r   r   thumbnail_default_storagethumbnail_storager   alias_targetgenerater   r   uppersetattr)rX   r   r   r   r   r   r   r\   r]   default	attr_namer   rm   s               r'   rY   zThumbnailer.__init__6  s     	t5d5f5!,N,$ ' A A!2*  
- 	0G '0ItY-5)//*;<i/	0r)   c                     t        j                  || j                        }|st        |      ||d<   | j	                  |d      S )z|
        Retrieve a thumbnail matching the alias options (or raise a
        ``KeyError`` if no such alias exists).
        )targetr,   Tsilent_template_exception)r   rG   r   KeyErrorr/   )rX   aliasr4   s      r'   __getitem__zThumbnailer.__getitem__P  sG    
 ++eD,=,=>5/! !!'T!JJr)   c                     t        |t              r|S g }||j                  |       t        |i |}d|vr| j                  |d<   |S )z
        Get the thumbnail options that includes the default options for this
        thumbnailer (and the project-wide default options).
        r   )r   r   appendthumbnail_quality)rX   rk   r]   r\   optss        r'   get_optionszThumbnailer.get_options[  sZ    
 ')9:$$(KK)*00--"44DOr)   c           
      ,   | j                  |      }|d   }d\  }}|D ]&  }	 t        |      }t	        ||      t        ||      }}( |dk(  s|dk  r$d}t        j                   |j                  |       t        j                  | || j                  |      }|1d}t        j                  |j                  | j                              t        j                  ||| j                        }	| j!                  |t#        j$                  |	      	      }
|d
   }|d   }t&        j(                  j+                  | j                        d   dd j-                         dk(  rt        j.                  |	|
      }n*t        j0                  |	|
|||j3                  dd            }|j5                         }t7        |t8              s|j;                         }t=        |
t?        |      | j@                  |      }|	|_!        d|_"        |S # t        t        f$ r Y w xY w)z
        Return an unsaved ``ThumbnailFile`` containing a thumbnail image.

        The thumbnail image is generated using the ``thumbnail_options``
        dictionary.
        rN   )r   r   r   z.The source image has an invalid size ({0}x{1}))fail_silentlyNz8The source file does not appear to be an image: '{name}')r   transparentr   subsamplingr9   svg)filenamekeep_icc_profileF)r   r   r   r   )r   r   rk   )#r   float	TypeErrorr$   minmaxr   EasyThumbnailsErrorformatr   generate_source_imagesource_generatorsInvalidImageFormatErrorr   process_imagethumbnail_processorsget_thumbnail_namer   is_transparentrJ   rK   rL   lowersave_svg_imagesave_pil_imagerG   readr   bytesencoderh   r   r   rw   r   )rX   rk   r   	orig_sizemin_dimmax_dimdimmsgrw   thumbnail_imager   r   r   imgdatarA   s                   r'   generate_thumbnailzThumbnailer.generate_thumbnailj  s    !,,->?%f-	 	DCCj  #7C0#gs2CWG	D a<7Q;BC00Y1GHH,,#T%;%;35 =LC44SZZTYYZ5OPP ..u6G/3/H/HJ**,,_= + ? $I.'677DII&q)!"-335>''(KC''(G':K:O:OPbdi:jlC xxz $&;;=D!;t,d6L6L/1	 *	$	Q z* s   H  HHc                    | j                  |      }t        j                  j                  | j                        \  }}t        | j                  d      r&|j                  | j                  j                  d      }|j                  d      }t        j                  j                  |      d   dd j                         }| j                  }|du st        |t        t        f      r||v r|}n|r| j                   }n| j"                  }|xs d}|j%                         }dj'                  |      }	d	|	i}
| j(                  |
z  }| j*                  |
z  }t        | j,                  t.              rt1        | j,                        }n| j,                  } || ||||
      }dj3                  | j4                  |      }t        j                  j'                  ||||      S )z
        Return a thumbnail filename for the given ``thumbnail_options``
        dictionary and ``source_name`` (which defaults to the File's ``name``
        if not provided).
        locationr   /r9   NTjpg_r   )r2   source_filenamethumbnail_extensionrk   prepared_optionsz{}{})r   rJ   rK   splitr   r   r   replacer   lstriprL   r   thumbnail_preserve_extensionsr   listtuple thumbnail_transparency_extensionr   r   r   thumbnail_basedirthumbnail_subdirthumbnail_namerr#   r   r   thumbnail_prefix)rX   rk   r   rK   r   source_extensionr   r   prepared_opts	opts_textr   r   r   
namer_funcr   s                  r'   r   zThumbnailer.get_thumbnail_name  s    !,,->? "dii 8o4&&
3<< 3 3 < <bAD{{377++O<Q?CIIK"@@$&*5H4QV-*X $77(I==I00I&	)::<HH]+		"((4/&&-d**C0&t';';<J--J+ )/*
 ==!6!6Aww||GT68<<r)   c                 L   | j                  |      }| j                  |d      g}| j                  |d      }||vr|j                  |       |D ]R  }| j                  |      }|st	        || j
                  |      }t        j                  r|j                  |       |c S  y)z
        Return a ``ThumbnailFile`` containing an existing thumbnail for a set
        of thumbnail options, or ``None`` if not found.
        Fr   T)r   r   rk   N)	r   r   r   thumbnail_existsrh   r   r   rO   r   )rX   rk   namestransparent_namer   existsthumbnail_files          r'   get_existing_thumbnailz"Thumbnailer.get_existing_thumbnail  s    
 !,,->?(():(NO224 3 15(LL)* 	&H**84F!.!4+A+A&7"9 66 #77?%%	&r)   c                     | j                  |      }|| j                  }| j                  |      }|sK|r(| j                  ||      }|r| j	                  |       |S t
        j                  j                  | |       |S )a  
        Return a ``ThumbnailFile`` containing a thumbnail.

        If a matching thumbnail already exists, it will simply be returned.

        By default (unless the ``Thumbnailer`` was instanciated with
        ``generate=False``), thumbnails that don't exist are generated.
        Otherwise ``None`` is returned.

        Force the generation behaviour by setting the ``generate`` param to
        either ``True`` or ``False`` as required.

        The new thumbnail image is generated using the ``thumbnail_options``
        dictionary. If the ``save`` argument is ``True`` (default), the
        generated thumbnail will be saved too.
        r   )senderr4   )r   r   r  r   save_thumbnailr   thumbnail_missedsend)rX   rk   rf   r   r   rA   s         r'   r/   zThumbnailer.get_thumbnail  s    $ !,,->?}}H//0AB	 33%.G 4 I	 ''	2
  ((--): . < r)   c                 8   |j                   }	 | j                  j                  |       | j                  j	                  ||       | j                  |j                   dd      }t        j                  ryt        j                  j                  j                  ||j                  |j                  d      \  }}|s2|j                  |_        |j                  |_        |j	                          t        j                  j!                  |       y# t        $ r Y w xY w)z
        Save a thumbnail to the thumbnail_storage.

        Also triggers the ``thumbnail_created`` signal and caches the
        thumbnail values and dimensions for future lookups.
        Tcreater   r=   r@   )r  N)r   r   rr   	Exceptionrf   get_thumbnail_cacher   rO   r   rH   rE   rP   r>   r?   r   thumbnail_createdr
  )rX   rA   r   thumb_cacherQ   createds         r'   r  zThumbnailer.save_thumbnail  s    >>	""))(3 	##Hi8..NN4 / 6 ..**22@@)'0(1(8(8: A ; &g
 )2 &*3*:*: ' %%'!!&&i&8'  		s   D 	DDc                    | j                   ryt        j                  | j                        r+t        j                  | j                  | j
                        }n| j                         }|sy|j                  }|syt        j                  | j                        }|r(t        j                  | j                  |      }|sy||k  S | j                  |      }|sy|j                  }|j                  r||j                  k  r|S y)a.  
        Calculate whether the thumbnail already exists and that the source is
        not newer than the thumbnail.

        If the source and thumbnail file storages are local, their file
        modification times are used. Otherwise the database cached modification
        times are used.
        F)
r   r   is_storage_localr   get_modified_timer   get_source_cachemodifiedr   r  )rX   thumbnail_namesource_modtimesourcelocal_thumbnailsthumbnail_modtimerA   s          r'   r   zThumbnailer.thumbnail_exists,  s     !!$"5"56"44##TYY0N **,F#__N 11$2H2HI % 7 7&&!8$!%666,,^<	%...I4F4F"Fr)   c                 ^   | j                   ry t        | d      r|s| j                  s|s| j                  S |xs |xr t        j                         }t
        j                  j                  j                  ||| j                  | j                  | j                        | _        | j                  S )N_source_cache)r  update_modifiedr   r   r   )r   r   r  r
   nowr   SourcerE   get_filer   r   thumbnail_check_cache_miss)rX   r  r   r  s       r'   r  zThumbnailer.get_source_cacheU  s    4)&!!)))!+V?#]]22;;?''dii!<< < > !!!r)   c                     | j                   ry | j                  d      }|xs |xr t        j                         }t        j
                  j                  j                  ||| j                  ||| j                        S )NT)r  )r  r  r   r  r   r   )
r   r  r
   r   r   rD   rE   r"  r   r#  )rX   r  r  r   r  r  s         r'   r  zThumbnailer.get_thumbnail_cacheb  su    &&d&3!+V?''00?**6!<< 1 > 	>r)   c                     | j                   rA|xs t        | dd       xs d}| j                  j                  | j                  |      | _        y | j                  d       y )Nr   r   r   )r   r   r   r   r   r   seek)rX   r   s     r'   r   zThumbnailer.openl  sJ    ;;>746>$D++00DADIIIaLr)   )NNNNFT)F)TNF)FFrW   )r_   r`   ra   r   r   r   rY   r   r   r   r   r  r/   r  r   r  r  r   r   r   r   s   @r'   r   r   $  sv    	   <@GK04	K6p,=\&2 DH05"H9>'R"> Dr)   r   c                   t     e Zd ZdZ fdZ fdZ fdZde_        d
dZde_        d Z	 fdZ
 fd	Z xZS )r    g
    A field file which provides some methods for generating (and returning)
    thumbnail images.
    c                     t        |   |i | | j                  j                  | _        t        | j                  dd       }|r|| _        | | _        y )Nr   )rj   rY   r"   r   r   r   r   r   )rX   r\   r]   r   rm   s       r'   rY   zThumbnailerFieldFile.__init__}  sN    $)&)"jj00#DJJ0CTJ%6D" r)   c                 T    t        |   ||g|i | | j                  dd       y)ze
        Save the file, also saving a reference to the thumbnail cache Source
        model.
        Tr  N)rj   rf   r  )rX   r   contentr\   r]   rm   s        r'   rf   zThumbnailerFieldFile.save  s0    
 	T74T4V4T$7r)   c                     | j                         }| j                  |       t        |   |i | |r|j                  |j                          yyy)zH
        Delete the image, along with any generated thumbnails.
        N)r  delete_thumbnailsrj   rr   pk)rX   r\   r]   source_cacherm   s       r'   rr   zThumbnailerFieldFile.delete  sQ     ,,.|,''LOO7! 8<r)   Tc                 >   | j                         }d}|rt        j                  | j                        }|j                  j                         D ]L  }|j                  |k(  s| j                  j                  |j                         |j                          |dz  }N |S )z
        Delete any thumbnails generated from the source image.

        :arg source_cache: An optional argument only used for optimisation
          where the source cache instance is already known.
        :returns: The number of files deleted.
        r   r9   )	r  r   rC   r   
thumbnailsr-   r8   rr   r   )rX   r/  deletedthumbnail_storage_hashthumbnail_caches        r'   r-  z&ThumbnailerFieldFile.delete_thumbnails  s     ,,.%*%;%;&&&("#/#:#:#>#>#@ ! #//3II**11/2F2FG#**,qLG! r)   c              /     K   | j                         }|rrt        j                  | j                        }|j                  j                         D ]5  }|j                  |k(  st        |j                  | j                         7 yyw)zK
        Return an iterator which returns ThumbnailFile instances.
        )r   r   N)	r  r   rC   r   r1  r-   r8   rh   r   )rX   r\   r]   r/  r3  r4  s         r'   get_thumbnailsz#ThumbnailerFieldFile.get_thumbnails  s     
 ,,.%*%;%;&&&("#/#:#:#>#>#@ H #//3II'_-A-A040F0FH H	H s   AB!'Bc           	          t         |          }|j                  | j                  j	                         D ci c]  \  }}|j                  d      s|dv r|| c}}       |S c c}}w )NrA   )r   r   r   )rj   __getstate__r   __dict__r.   
startswith)rX   statekvrm   s       r'   r8  z!ThumbnailerFieldFile.__getstate__  sg    $&++-
1||K(A1`,` qD
 	
 
s   "A$
c                     t        t               d      rt        | 	  |       n| j                  j	                  |       | | j                  d<   y )N__setstate__r   )r   rj   r?  r9  r   )rX   r;  rm   s     r'   r?  z!ThumbnailerFieldFile.__setstate__  s<    57N+G 'MM  '(,n%r)   rW   )r_   r`   ra   r   rY   rf   rr   r   r-  r6  r8  r?  r   r   s   @r'   r    r    w  sF    
!8" F. %)!H - -r)   r    c                   "     e Zd ZdZ fdZ xZS )ThumbnailerImageFieldFiler(  c                    t        | j                  dd      }|rd|vr| j                  |d<   t        ||      j	                  |      }t
        j                  j                  |      \  }}t
        j                  j                  |j                        d   }|j                         |j                         k7  r||z   }t        	| ,  ||g|i | y)z
        Save the image.

        The image will be resized down using a ``ThumbnailField`` if
        ``resize_source`` (a dictionary of thumbnail options) is provided by
        the field.
        resize_sourceNr   r9   )r   r"   r   r   r   rJ   rK   rL   r   r   rj   rf   )
rX   r   r+  r\   r]   r4   	orig_nameextgenerated_extrm   s
            r'   rf   zThumbnailerImageFieldFile.save  s     $**ot<'%)%;%;	"!'40CCGLG  WW--d3NIsGG,,W\\:1=M""$		3 =0T74T4V4r)   )r_   r`   ra   r   rf   r   r   s   @r'   rA  rA    s    
5 5r)   rA  rW   )FN)*rJ   django.core.files.baser   r   django.core.files.storager   r   django.core.files.imagesr   django.db.models.fields.filesr   r	   django.utilsr
   django.utils.safestringr   django.utils.htmlr   django.utils.module_loadingr   easy_thumbnailsr   r   r   r   r   r   easy_thumbnails.aliasr   easy_thumbnails.confr   easy_thumbnails.optionsr   r(   r5   rR   rT   rc   rh   r   r    rA  r[   r)   r'   <module>rS     s    	 4 > 9 C ! - $ 5 O O ) ) 48'v/"#L	 	 
K&N K&\P$ Pf
\-9k \-~50D 5r)   