Replace Thumbnail engine

This commit is contained in:
2020-08-03 19:14:13 +02:00
parent dc318d4f98
commit b54e81d372
9 changed files with 292 additions and 179 deletions

View File

@@ -41,7 +41,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_thumbs',
'easy_thumbnails',
'widget_tweaks',
]
@@ -137,3 +137,11 @@ AUTH_USER_MODEL = 'lostplaces_app.Explorer'
# Templates to use for authentication
LOGIN_REDIRECT_URL = 'home'
LOGOUT_REDIRECT_URL = 'home'
THUMBNAIL_ALIASES = {
'': {
'thumbnail': {'size': (390, 220), 'crop': True},
'hero': {'size': (700, 400), 'crop': True},
'large': {'size': (1920, 1080), 'crop': True},
},
}