From 21217b067fd17cd0b3c78791904e93b9f943dd19 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 18 Sep 2020 10:47:41 +0200 Subject: [PATCH] Add comments and relocate thumbnails, set quality. --- django_lostplaces/django_lostplaces/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django_lostplaces/django_lostplaces/settings.py b/django_lostplaces/django_lostplaces/settings.py index 2be6876..d89fea6 100644 --- a/django_lostplaces/django_lostplaces/settings.py +++ b/django_lostplaces/django_lostplaces/settings.py @@ -131,9 +131,15 @@ USE_TZ = True STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static_files') +# Upload directory MEDIA_URL = '/uploads/' MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') +# Thumbnails +THUMBNAIL_MEDIA_ROOT = os.path.join(MEDIA_ROOT, 'thumbs/') +THUMBNAIL_MEDIA_URL = os.path.join(MEDIA_URL, 'thumbs/') +THUMBNAIL_QUALITY = 75 + # Templates to use for authentication LOGIN_URL = reverse_lazy('login') LOGIN_REDIRECT_URL = reverse_lazy('lostplaces_home')