Commits

Greg Newman committed 531f480

forgot one setting

  • Participants
  • Parent commits 0802856

Comments (0)

Files changed (2)

File example/settings.py

 LOUPE_RESIZE_THUMB_CROP = True # Crop thubmnails? True or False
 LOUPE_RESIZE_DISPLAY_WIDTH = 800 # Width in pixels of the display size (not full size image)
 LOUPE_PRE_CACHE_IMAGES = True # Pre-cache images on upload? True or False
+LOUPE_INCREMENT_COUNT = True # Increment the view count on images? True or False
 
 try:
    from local_settings import *

File loupe/specs.py

 # and our display spec
 class Display(ImageSpec):
     access_as = 'display'
-    pre_cache = True
-    increment_count = True
+    pre_cache = settings.LOUPE_PRE_CACHE_IMAGES
+    increment_count = settings.LOUPE_INCREMENT_COUNT
     processors = [ResizeDisplay]