meringue.conf.default_settings ¤
UPLOAD_RENAME_HANDLER
module-attribute
¤
Path to method for renaming images on upload
COP_YEARS_DIFF
module-attribute
¤
Difference in years for which it is necessary to display the range of years
Specify 1 to display the period for the second year.
FRONTEND_DOMAIN
module-attribute
¤
Domain for generating absolute links
THUMBNAIL_GENERATOR_CLASS
module-attribute
¤
Thumbnail generator class.
THUMBNAIL_STORAGE_GETTER
module-attribute
¤
Dotted path to a method that returns a store.
THUMBNAIL_IMAGE_CLASS
module-attribute
¤
Thumbnail image class.
THUMBNAIL_DIR
module-attribute
¤
Directory for saving thhumbnails.
THUMBNAIL_URL
module-attribute
¤
Url where thumbnails will be available.
THUMBNAIL_SAVE_PARAMS_BY_FORMAT
module-attribute
¤
THUMBNAIL_SAVE_PARAMS_BY_FORMAT: Final[dict[str, dict]] = {
"GIF": {"optimize": True},
"JPEG": {"quality": 85, "optimize": True},
"PNG": {"optimize": True, "compress_level": 5},
"TIFF": {"quality": 85},
"WEBP": {"quality": 85},
}
List of default options for saving thumbnails images by format.
THUMBNAIL_DEFAULT_FORMAT
module-attribute
¤
Default thumbnail image format.
PROTECTED_SERVE_WITH_NGINX
module-attribute
¤
The option implies the distribution of protected files by nginx. Instead of serving the file in response.
The view x_accel_redirect_view adds the X-Accel-Redirect header with a link to the file.