1. George Notaras
  2. django-thumbnail-works

Commits

George Notaras  committed 0a943d6

Removed prefix from settings.

  • Participants
  • Parent commits 6c19e2c
  • Branches default

Comments (0)

Files changed (2)

File docs/configuration.rst

View file
 The following settings can be specified in the Django project's ``settings``
 module to customize the functionality of *django-thumbnail-works*.
 
-DTW_THUMBNAILS_FORMAT
+THUMBNAILS_FORMAT
     If an image format is not specified in the thumbnail definition, this
     format is used to save the thumbnails or the original imageare (if it is
     processed). Valid values are any image formats supported by PIL. For
     instance, JPEG, PNG etc.
 
-DTW_THUMBNAILS_QUALITY
+THUMBNAILS_QUALITY
     This setting accepts an integer that represents the quality parameter
     when saving JPEG images. It is not used for other image formats.
 
-DTW_THUMBNAILS_DIRNAME
+THUMBNAILS_DIRNAME
     This is the name of the directory where thumbnails are stored. By default,
     this is set to ``thubs``, which means that the thumbnails are saved in the
     ``<media_root>/<upload_to>/tumbs/`` directory.
 
-DTW_THUMBNAILS_DELAYED_GENERATION
+THUMBNAILS_DELAYED_GENERATION
     If this setting is set to True (the default), thumbnails are generated
     the first time they are accessed. If this is set to False, then all
     thumbnails are generated as soon as the original image is uploaded.

File src/thumbnail_works/settings.py

View file
 
 
 # Anything supported by PIL
-THUMBNAILS_FORMAT = getattr(settings, 'DTW_THUMBNAILS_FORMAT', 'JPEG')
+THUMBNAILS_FORMAT = getattr(settings, 'THUMBNAILS_FORMAT', 'JPEG')
 
 # For JPEG format only
-THUMBNAILS_QUALITY = getattr(settings, 'DTW_THUMBNAILS_QUALITY', 85)
+THUMBNAILS_QUALITY = getattr(settings, 'THUMBNAILS_QUALITY', 85)
 
 # This is the name of the directory where the thumbnails will be stored
-THUMBNAILS_DIRNAME = getattr(settings, 'DTW_THUMBNAILS_DIRNAME', 'thumbs')
+THUMBNAILS_DIRNAME = getattr(settings, 'THUMBNAILS_DIRNAME', 'thumbs')
 
 # Generate the thumbnails on first access rather than at the time the
 # original image is saved. 
-THUMBNAILS_DELAYED_GENERATION = getattr(settings, 'DTW_THUMBNAILS_DELAYED_GENERATION', True)
+THUMBNAILS_DELAYED_GENERATION = getattr(settings, 'THUMBNAILS_DELAYED_GENERATION', True)