mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-30 19:40:24 +00:00
This new feature gives the user more control over *when* their images are validated. Image cache backends are now exclusively for controlling the *how*. This means you won't have to write a lot of code when you just want to change one or the other.
10 lines
359 B
Python
10 lines
359 B
Python
from appconf import AppConf
|
|
from .imagecache.actions import validate_now, clear_now
|
|
|
|
|
|
class ImageKitConf(AppConf):
|
|
DEFAULT_IMAGE_CACHE_BACKEND = 'imagekit.imagecache.backends.Simple'
|
|
CACHE_BACKEND = None
|
|
CACHE_DIR = 'CACHE/images'
|
|
CACHE_PREFIX = 'ik-'
|
|
DEFAULT_SPEC_FIELD_IMAGE_CACHE_STRATEGY = 'imagekit.imagecache.strategies.Pessimistic'
|