diff --git a/biscuit/core/settings.py b/biscuit/core/settings.py index 2b9394d0aa050e160949ffe1876f4cedeca2c936..bea915b78ff750e43b72c67d21374c55d1dbe13e 100644 --- a/biscuit/core/settings.py +++ b/biscuit/core/settings.py @@ -5,6 +5,7 @@ import sys from django.utils.translation import ugettext_lazy as _ from dynaconf import LazySettings +from easy_thumbnails.conf import Settings as thumbnail_settings from .util.core_helpers import get_app_packages @@ -54,6 +55,8 @@ INSTALLED_APPS = [ 'fa', 'django_any_js', 'django_tables2', + 'easy_thumbnails', + 'image_cropping', 'maintenance_mode', 'menu_generator', 'phonenumber_field', @@ -112,6 +115,10 @@ TEMPLATES = [ }, ] +THUMBNAIL_PROCESSORS = ( + 'image_cropping.thumbnail_processors.crop_corners', +) + thumbnail_settings.THUMBNAIL_PROCESSORS + WSGI_APPLICATION = 'biscuit.core.wsgi.application' diff --git a/pyproject.toml b/pyproject.toml index 210583aa687e2b50514f482d561175dd89bbf9ac..8768e6df184286dbfe003a6e957acf990818813e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,8 @@ django-settings-context-processor = "^0.2" django-auth-ldap = { version = "^2.0", optional = true } django-maintenance-mode = "^0.13.3" django-ipware = "^2.1" +easy-thumbnails = "^2.6" +django-image-cropping = "^1.2" [tool.poetry.extras] ldap = ["django-auth-ldap"]