1. George Notaras
  2. django-thumbnail-works

Commits

George Notaras  committed 6994ab6

Added comments to each setting

  • Participants
  • Parent commits d6cbc5d
  • Branches default

Comments (0)

Files changed (1)

File src/thumbnail_works/settings.py

View file
  • Ignore whitespace
 from django.conf import settings
 
 
-# JPEG, PNG
+# Anything supported by PIL
 THUMBNAILS_FORMAT = getattr(settings, 'DTW_THUMBNAILS_FORMAT', 'JPEG')
 
 # For JPEG format only
 THUMBNAILS_QUALITY = getattr(settings, 'DTW_THUMBNAILS_QUALITY', 85)
 
-
 # This is the name of the directory where the thumbnails will be stored
 THUMBNAILS_DIRNAME = getattr(settings, 'DTW_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)