Replace Thumbnail engine
This commit is contained in:
@@ -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},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user