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')